Last active
September 7, 2015 14:28
-
-
Save giseongeom/ccb6149c2bea53a92455 to your computer and use it in GitHub Desktop.
.msi file 을 현재 폴더에 압축 해제.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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