Every once in a while I need to extract the content of a .msi file in order to customize a deployment for a particular network environment. Sometimes initializing the .msi installer will temporarily extract the files into C:\Documents and Settings\\Local Settings\Temp, but those files are removed once the installer exits.

To extract files from a .msi file at the command line, type:

msiexec /a PathToMSIFile /qb TARGETDIR=DirectoryToExtractTo

For example, to extract files from d:\manz\manz.msi into d:\manz you would type:

msiexec /a d:\manz\manz.msi /qb TARGETDIR=d:\manz

The destination directory does not need to exist prior to running this command.

Post a Comment Blogger

 
Top