How to extract msi files to your computer - gHacks Tech News

How to extract msi files to your computer

MSI files are Windows installer files (for Microsoft Installer) that Windows users can run to install software on a PC.

You may experience a couple of issues with these type of setup files: installations may not complete properly, you may not be able to install the program on a network, or you may run into dependency issues if the system is lacking other required installations.

Sometimes, you may only need access to a single file contained in the msi installation package, at other times, you may have noticed that all the installer did was extract the files to the system. In the latter case, extraction of the msi file may have yielded the same result, but with additional benefits including a fully portable application that does not leave traces behind on the host system.

And if you are running a non-Windows system, extraction may be the only option you got to access files included in the msi installer package.

Extracting msi files

extract msi files
extracting msi installer files

Depending on the operating system that you work on, you may have multiple options to extract msi files. The 7-zip program is for instance available for Windows, Linux and Mac systems. It can be used to extract msi files on the host system.

All that you need to do for that is right-click on the msi file, and select Extract Here to unpack the msi file on your system.  You can alternatively open the archive instead using the same application. This opens all files in the 7-Zip program manager from where individual files can be extracted or run right away.

If you are using Microsoft Windows, you can use programs such as Universal Extractor, Less MSI, MSI Tools, or these three simple tools.

Note: Some extractors may not be able to unpack all msi files on your system. It is therefore a good idea to keep multiple tools at hand if you run into situations where your favorite program cannot extract the msi. There may also be a difference in how files are extracted. 7-Zip for instance extracts all files to the root directory, while the built-in msiexec tool will preserve directories.

To use msiexec, you need to perform the following operation:

  1. Tap on the Windows-key and type cmd.
  2. Right-click on cmd.exe and select Run as administrator from the context menu.
  3. Confirm the user account control prompt if it appears.
  4. Use the command msiexec /a msifilepath/qb TARGETDIR=targetpath

You can look up the full list of command line switches on Microsoft's website. The /a command applies the administrative installation option, the /qb parameter displays a basic user interface.





  • We need your help

    Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

    We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.

    If you like our content, and would like to help, please consider making a contribution:

    Comments

    1. Psy said on October 8, 2013 at 4:58 pm
      Reply

      I prefer to use this registry tweak to add an option when we right click a .msi file :

      [HKEY_CURRENT_USER\Software\Classes\Msi.Package\shell\Unpack MSI\command]
      @=”msiexec.exe /a \”%1\” /qb TARGETDIR=\”%1-Unpacked\””

      Easy, clean, and “native”.

      1. Martin Brinkmann said on October 8, 2013 at 5:03 pm
        Reply

        Great tip, no software installation, no command line juggling. Thanks!

    2. Transcontinental said on October 8, 2013 at 6:30 pm
      Reply

      I’ve had 7-Zip installed together with the Zoom Player installation, whilst my default multi-format zipper is IZarc. IZArc handles more formats, but 7-Zip handles some formats that IZarc does not, i.e. the MSI described here. I’m keeping both archivers, all to 7-Zip then all to IZarc (leaves several formats to 7-Zip). 7-Zip is dated 2011 but works fine, also has a 64-bit version.

    3. ank91 said on October 9, 2013 at 3:25 pm
      Reply

      and how to extract file from a setup created with Inno Setup Compiler.?

      here is the software- http://www.havysoft.cl/innoextractor.html

    4. goddert said on October 10, 2013 at 9:59 am
      Reply
    5. GK said on October 10, 2013 at 1:35 pm
      Reply

      Note that many MSIs don’t support these switches. It’s not universal so it’s to use a dedicated tool.

    Leave a Reply