tags:

views:

9856

answers:

9

Can anyone advise a way, or utility that can extract the files from an MSI installation package.

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.

Much appreciated.

+10  A: 

from Google, for Vista:

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.

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

msiexec /a filepath to MSI file /qb TARGETDIR=filepath to target folder

using the desired locations to fill the above mentioned filepaths. (Example: msiexec /a c:\testfile.msi /qb TARGETDIR=c:\temp\test)

neoice
Thanks neoice - that does seem to work, so will accept. Unfortunately it turns out they are not msi setups but installshield .exe setups.
Martin
another quick Google turned up this: http://www.legroom.net/software/uniextractI would prefer to use built-ins but it looks like an acceptable utility.
neoice
Note that (a) msiexec does not deal with relative filepaths and (b) will place the files into their target installation paths using this method.
Paul-Jan
As far as I understand (from msiexec /?), this command will actually install the program to that location; I don't think this is what the original requestor had in mind.
+1  A: 

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

michael
A: 

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

Manuel Ferreria
A: 

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.

Mick
A: 

You can also try Heath Stewart's MSI Extractor.

jkchong
+1  A: 

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.

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 may be able to open these.

Glytzhkof
My requirements for doing this have passed now - but I will try what you suggest at some point to see if it would have worked. Thanks for responding.
Martin
+2  A: 

There is also lessmsi which is completely free and open source: http://code.google.com/p/lessmsi/

scott
A: 

When I use the msiexec, i don´t find the files nor the new folder. Why?

Luis
+1  A: 

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

Andrew Guest

related questions