Home
Manage Your Code
Snippet: Extract Files from MSI package (Other)
Title: Extract Files from MSI package Language: Other
Description: Use to call MSIEXEC wit the command line parameters to pull the contents of the msi out of of the package Views: 246
Author: Michael Wood Date Added: 1/14/2008
Copy Code  
msiexec /a <MSIPackagename> /qn TargetDir=<TargetPath>
Usage
msiexec /a fooPackage.msi /qn TargetDir=c:\ExtractedFoo
Notes
Useful for pulling out the contents of a msi to get at a particular file without having to actually install the whole package. The /a switch is for an Administrative install, which is what you would do if you wanted to extract the files onto a network share.