Skip to content

Instantly share code, notes, and snippets.

@dylanmei
Last active October 10, 2022 00:04
Show Gist options
  • Select an option

  • Save dylanmei/6783998 to your computer and use it in GitHub Desktop.

Select an option

Save dylanmei/6783998 to your computer and use it in GitHub Desktop.
How to extract msu/msp/msi/exe files from the command line
http://www.windowswiki.info/2009/02/19/how-to-extract-msumspmsiexe-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:* update.cab C:<target_dir>
Microsoft Patch File (.msp)
msix patch.msp /out C:<target_dir>
msix.zip
Windows Installer Package (.msi)
msiexec /a setup.msi /qb TARGETDIR=C:<target_dir>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment