Skip to content

Instantly share code, notes, and snippets.

@giseongeom
Last active September 7, 2015 14:28
Show Gist options
  • Save giseongeom/ccb6149c2bea53a92455 to your computer and use it in GitHub Desktop.
Save giseongeom/ccb6149c2bea53a92455 to your computer and use it in GitHub Desktop.
.msi file 을 현재 폴더에 압축 해제.
@echo off
SETLOCAL
IF #%1# == ## (
GOTO :usage
) ELSE (
GOTO :main
)
:main
msiexec /a %~f1 /qb TARGETDIR=%~dp1%~n1
goto :end
:usage
echo ---------------------------------------------------------------------
echo # Filename: %0
echo # Usage: %0 filename.msi
echo #
echo #
echo ---------------------------------------------------------------------
GOTO :end
:end
ENDLOCAL
@giseongeom
Copy link
Author

C:\temp>msiextract example.msi

C:\temp>dir
Volume in drive C is OS
Directory of C:\temp

09/07/2015 11:27 PM

.
09/07/2015 11:27 PM ..
09/07/2015 11:27 PM example
09/07/2015 11:26 PM 5,599,232 example.msi
1 File(s) 5,599,232 bytes
3 Dir(s) 814,670,372,864 bytes free

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment