Skip to content

Instantly share code, notes, and snippets.

@DanielTheCoder
Last active December 15, 2015 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanielTheCoder/5201317 to your computer and use it in GitHub Desktop.
Save DanielTheCoder/5201317 to your computer and use it in GitHub Desktop.
Unzipping/extracting MSI files
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\Msi.Package\shell\Extract MSI\command]
@="msiexec.exe /a \"%1\" /qb TARGETDIR=\"%1 Extracted\""
@echo off
SET orgdir=%CD%
REM echo %orgdir%
FOR %%f IN (*.msi) DO (
REM echo %%f
REM echo %orgdir%\%%~nf\
msiexec.exe /a %%f /qb TARGETDIR=%orgdir%\%%~nf\
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment