How to extract msu/msp/msi/exe files from the command line
I find these commands quite helpful — maybe you know them already — if not, here you go:
Microsoft Hotfix Installer (.exe)
setup.exe /t:C:<target_dir> /c
Microsoft Update Standalone Package (.msu)
expand -F:* update.msu C:<target_dir>
expand -F:* update.cab C:<target_dir>
Microsoft Patch File (.msp)
msix patch.msp /out C:<target_dir>
Windows Installer Package (.msi)
msiexec /a setup.msi /qb TARGETDIR=C:<target_dir>
About this entry
You’re currently reading “How to extract msu/msp/msi/exe files from the command line,” an entry on WindowsWiki
- 19/02/09 on 4:13pm
- cab, Command line, exe, Extract, Microsoft, Microsoft Hotfix Installer, Microsoft Patch File, Microsoft Update Standalone Package, msi, msix, msp, msu, Windows, Windows Installer Package
- Next post:
That first command you listed for hotfix installing – is there a way to just extract from the .exe instead of actually applying/advertising the hotfix? I’m building a windows 7 image w/ updates slipstreamed in but have only found how to extract from .MSUs. Do you have any ideas? I tried the expan -f command on the .exe’s and all it does is copy it to the destination location.
/extract[:path]. With that swith the Update.exe or Hotfix.exe extracts the files without starting the installation. Here is a complete list of command-line swithes for Update.exe: http://support.microsoft.com/?scid=kb;en-us;262841
[…] http://www.windowswiki.info/2009/02/19/how-to-extract-msumspmsiexe-files-from-the-command-line […]
Please explain if you use “special utilities.” There is not such built-in command called “msix,” at least not on Windows Server 2012 R2. Is that a 3rd party freeware or ?
Never mind – I googled it. MSIX was supposed to be an MS packaging tool; but never quite made it; but it still available on-line. Thanks.