Tuesday, November 23, 2010

Extract files from a MSI package

Usually it is possible to use ones favorite compression utility to treat a Microsoft Installer Package (MSI) like it was a normal archive. Though sometimes it doesn't work, but then one can use the Windows Installer Tool (Msiexec.exe) to extract the files from the MSI package. It can open a MSI package in "Administrator" installation mode, where it can extract the files without performing the install.

Runs setup where one can select where to extract the files without actually installing the application:

Msiexec /a mypackage.msi

Extracts the files to the specified location without user interaction:

msiexec /a mypackage.msi /qb TARGETDIR="C:\MyFolder"

Note this can also be useful in case an MSI package has been configured to block install, when used on certain versions of Microsoft Windows.

No comments: