Howto Extract all Files from Microsoft Installer Files (msi) rather than to Install the Package

All you need is the Windows Installer itself. Hit Win+R (command line dialog) and execute the following line (change file name and target folder, of course):


msiexec /a c:\tmp\MSIFileName.msi /qb TARGETDIR="c:\tmp\msitmp\"

You’ll find all files in your target folder.


5 Comments

  1. MSM said,

    Thursday, 17th Dec 2009 at 15:08

    Hey,

    Can I extract only selected and not all files from MSI??

    Regards,
    MSM

  2. Charles Thayer said,

    Thursday, 11th Dec 2008 at 19:53

    I use Ubuntu Linux, and I’ve found that installing p7zip and running “7z x .msi” works well. (see http://www.7-zip.org). Others have had success with wine and “msiexec”.

    Good luck,
    /charles thayer

    • sysblog said,

      Thursday, 11th Dec 2008 at 23:30

      Thanks, mate, for this helpful tip!

      Cheers.

  3. Andris said,

    Wednesday, 27th Aug 2008 at 11:38

    Thanks for sharing this. I just need to clarify that it’s important to specify the full path to the destination directory in TARGETDIR property. If your path is not fully qualified then the msiexec tries to connect to the server which name will be equal to the name you’ve specified.


Post a Comment