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>
cd <target_dir>
expand -F:* 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