Total Pageviews

Search This Blog

Wednesday, December 21, 2011

Tip - How to extract files from msi package via command-line

I had a requirement to extract files from a .msi setup to a local folder, i.e. without running the installer, I found this  blog post useful for my purpose

The command is:

msiexec /a msifilepath /qn TARGETDIR=TargetDirectoryPath

Note:

/a represents administrative purpose
/qn displays no user interface

The blog post above uses /qb as the second switch for extraction to target directory but In my case, I used a different switch /qn 
/qb displays basic user interface whereas use /qn if you don't want any UI.

You can find more about the command and the switches here
http://technet.microsoft.com/en-us/library/cc759262(WS.10).aspx

No comments: