Tuesday, September 03, 2013

How to extract msu/msp/msi/exe files on the command line

I came across a situation that I need a tiny file (12kB) from a Windows drive kit installer (960MB). Try to find out how to get this tiny screw out without installing the big giant, then I look into the following post at WindowsWiki.

Microsoft Hotfix Installer (.exe)

setup.exe /t:C:\extracted_files\ /c

Microsoft Update Standalone Package (.msu)

expand -F:* update.msu C:\extracted_files
cd extracted_files
expand -F:* update.cab C:\extracted_files

Microsoft Patch File (.msp)

msix patch.msp /out C:\extracted_files
Note: You need to download the msix utility: msix.zip

Windows Installer Package (.msi)

msiexec /a setup.msi /qb TARGETDIR=C:\extracted_files

Imported from my old blog On the quest of a DBA's adventure......

No comments:

Post a Comment