Extract Files From Msi Installer

10.08.2019

If, like me, you are constantly wanting to just extract the files from a Windows Installer MSI file quickly, then this is for you. My ZIP utility of choice 7-Zip. The EXE setup file used by Advanced Installer. If you build your EXE setup with the installation files outside (MSI, CAB etc.). Extracts the MSI contained by the EXE to the specified location. The full path to an existent folder is required. If the path contains spaces you must enclose it in quotes: Example.

Active1 year, 11 months ago

We have some old patches that we want to get the files from but don't wish to spend the time installing them to a machine.

Can anyone advise a way to extract files from an MSI installation package?

Stevoisiak
5,21520 gold badges59 silver badges109 bronze badges
MartinMartin
2,4605 gold badges27 silver badges31 bronze badges

migrated from stackoverflow.comJul 7 '11 at 14:20

This question came from our site for professional and enthusiast programmers.

13 Answers

First, access an elevated command prompt, to do this:

  1. Click the Start button.

  2. Click All Programs.

  3. Go into Accessories.

  4. Right-click on Command Prompt.

  5. Select Run as administrator.

  6. When the UAC Prompt appears, click Continue.

Extract files from msi installer

Once you have your elevated command prompt, input the following:

using the desired locations to fill the above mentioned filepaths. Example:

Community
neoice

Use 7Zip.
It will unpack MSI , CAB, some EXE, and a lot more packages for you .There is no need for admin privileges to run this either.

-EDIT-

And its open source, so no nagging messages begging you to buy the stuff


There is also lessmsi which is completely free and open source.

There are no advertisements or nagging messages, it will preserve directory structure and file names correctly, has a sophisticated command line interface, as well as a graphical user interface that allows browsing through the files as well as viewing internal MSI tables and other MSI attributes.

Scott WillekeScott Willeke

There is built-in MSI support for file extraction (admin install)

MSI or Windows Installer has built-in support for this - the extraction of files from an MSI file. This is called an administrative installation. It is basically intended as a way to create a network installation point from which the install can be run on many target computers. This ensures that the source files are always available for any repair operations.

Note that running an admin install versus using a zip tool to extract the files is very different! The latter will not adjust the media layout of the media table so that the package is set to use external source files - which is the correct way. Always prefer to run the actual admin install over any hacky zip extractions. As to compression, there are actually three different compression algorithms used for the cab files inside the MSI file format: MSZip, LZX, and Storing (uncompressed). All of these are handled correctly by doing an admin install.

Admin-installs have many uses

It is recommended to read more about admin-installs since it is a useful concept, and I have written a post on stackoverflow: What is the purpose of administrative installation initiated using msiexec /a?.

In essence the admin install is important for:

  • Extracting and inspecting the installer files
  • Deployment via systems management software for example SCCM (avoids huge, cached MSI files in C:WindowsInstaller since files are extracted from internal cabs)
  • Corporate application repackaging
  • Repair, modify and self-repair operations
  • Patching & upgrades
  • MSI advertisement (the 'run from source' feature)
  • A number of other smaller details

Please read the stackoverflow post linked above for more details. It is quite an important concept for system administrators, application packagers, setup developers, release managers, and even the average user to see what they are installing etc..

Msi

Admin-install, practical how-to

You can perform an admin-install in a few different ways depending on how the installer is delivered. Essentially it is either delivered as an MSI file or wrapped in an setup.exe file.

Run these commands from an elevated command prompt, and follow the instructions in the GUI for the interactive command lines:

  • MSI files:

    that's to run with GUI, you can do it silently too:

  • setup.exe files:

A setup.exe file can also be a legacy style setup (non-MSI) or the dreaded Installscript MSI file type - a well known buggy Installshield project type with hybrid non-standards-compliant MSI format. It is essentially an MSI with a custom, more advanced GUI, but it is also full of bugs.

For legacy setup.exe files the /a will do nothing, but you can try the /extract_all:[path] switch as explained in this pdf. It is a good reference for silent installation and other things as well. Another resource is this list of Installshield setup.exe command line parameters.

MSI patch files (*.MSP) can be applied to an admin image to properly extract its files. 7Zip will also be able to extract the files, but they will not be properly formatted.

Finally, if no other way works, you can get hold of extracted setup files by cleaning out the temp folder on your system, launch the setup.exe interactively and then wait for the first dialog to show up. In most cases the installer will have extracted a bunch of files to a temp folder. Music volume eq app free download. Sometimes the files are plain, other times in CAB format, but Winzip, 7Zip or even Universal Extractor (haven't tested this product) - may be able to open these.

Community
Stein ÅsmulStein Åsmul
8891 gold badge12 silver badges22 bronze badges

I would recommend UniExtract for making neoice's solution even easier. It does the same thing, just is more automated and allows several methods for extracting MSI files, not just an administrative install (as his solution is using).

UniExtract can also handle exe's packaged with WISE or InstallShield, as well as a variety of other compressed formats. Oh, and its free.

Universal Extractor is a program do to exactly what it says: extract files from any type of archive, whether it's a simple zip file, an installation program, or even a Windows Installer (.msi) package.

MickMick
9315 gold badges13 silver badges21 bronze badges
Extract Files From Msi Installer

If you install Total Commander, there is a plugin to open and extract MSI files.

Manuel FerreriaManuel Ferreria

you can use Orca this app is a part of Platform SDK, but you can also download it from here http://astebner.sts.winisp.net/Tools/Orca.zip

michaelmichael

lessmsi is really the best choice here, as it offers you to choose exactly what files to extract and where they should go. In addition it can be easily installed using the apt-get framework for windows, called Choclatey. The above lessmsi website has moved and it can also be found/downloaded at GitHub. In addition you can find many other tools and MSI related information HERE. :(Sorry, I can't post more than 2 links!)

not2qubitnot2qubit
JOpuckmanJOpuckman
jkchong

Just download Universal Extractor. It extracts all types of files, including .exe,.msi,.rar,.zip,.kgb and more.

Simon Sheehan
7,78312 gold badges45 silver badges69 bronze badges
vivekvivek

Try MSITOOLS.EXE hosted on InstallSite for a GUI extractor.

Shekhar
4,5183 gold badges29 silver badges46 bronze badges
Andrew Guest

Extract Files From Msi Installer

Installshield .exe setups (as you call them) come in many flavors, and it is generally possible to extract files from them.

An Installshield setup.exe can contain old, legacy non-msi installers or new msi installers.

If the setup.exe is wrapping an MSI setup, you can specify setup.exe /a and the MSI's admin install will run, allowing you to specify and output location for the files.

If the setup.exe is a legacy Installshield setup, it may or may not support extracting files via the /extract_all:[path] switch. Please see here (updated July 2011, Acresso link was no longer valid, updated again February 2014 - pointing to itninja now).

Also note that another way to get hold of these files is to clean out the temp folder on your system, launch the setup.exe interactively and then wait for the first dialog to show up. In most cases the installer will have extracted a bunch of files to a temp folder. Sometimes the files are plain, other times in CAB format, but Winzip, 7Zip or even Universal Extractor (haven't tested this product) - may be able to open these.

Stein ÅsmulStein Åsmul
8891 gold badge12 silver badges22 bronze badges

Not the answer you're looking for? Browse other questions tagged installationcompressionwindows-installer or ask your own question.

Getting the files out of an installation file is fairly easy if you have the right tools.

A lot of people already have a tool to extract files from an exe: WinZip. If you aren't a fan of WinZip, try 7Zip can do it too, and it's free. You should have a decent zip program installed anyway. (Compressed folder is OK, but either of these programs offer a lot more options, including the ability extract files from some, but not all, installation packages (.exe).)

Universal Extractor is a free program that can extract files from Zip, MSI and other installation file formats. Right click on the file you want to extract and choose one of the UniExtract options.

Tip: If you want to install certain Office updates (like an updated HOL file for Outlook that will work in multiple versions) but receive a message that you don't have the correct Office version, you can extract the needed file from the installation file. While you should never install hotfixes that are not specifically for your Office version, you can use this method for files that should work on similar versions. (There is no good reason why the Holiday update should be for only one software version.)

Related posts:

Comments are closed.