@ echo off

set folder= % cd %

: start

@ echo ------

@ echo Extract MSI from an exe installer.

@ echo For InstallShield MSI based installers only

@ echo ------

@ echo Note: You may be prompted to run as administrator

@ echo If the installer fails to extract re-run this batch file as administrator

@ echo ------

@ echo Enter full path to installer ( include the .exe )

@ echo It will be extracted to the same location as this batch file

@ echo in a folder named "ExtractedMSI"

@ echo ------

SET /P INTPATH=Path to Installer:

@ echo ------

@ echo Intaller path: % INTPATH %

timeout /t 2

% INTPATH % /s /x /b" % folder % \ExtractedMSI" /v"/qn"