Application Installer with user parameter prompts
Posted: 29 Nov 2009 15:34
Hey Guys , Have written a batch installer with 3 parameter prompts to install 1 of 3 .exe files, which works and installs the app but at end of batch instead of stopping and saying congrats the console just flashes and disappears off the screen, any Help would be greatly appreciated. Thanks!, Bill
Code: Select all
@Echo Off
CLS && COLOR 4E
ECHO Application Installer with user parameter prompts
ECHO+
ECHO+
ECHO SELECT your Numbered .exe Application to Install..
:MENU
ECHO+
ECHO+
ECHO 1 = File1
ECHO 2 = File2
ECHO 3 = File2
ECHO+
SET /P M=Type: 1, 2, or 3, then press ENTER:
IF %M%==1 GOTO File1
IF %M%==2 GOTO File2
IF %M%==3 GOTO File3
:File1
start /wait %windir%\Installs\File1.exe
GOTO :EOF
:File2
start /wait %windir%\Installs\File2.exe
GOTO :EOF
:File3
start /wait %windir%\Installs\File3.exe
:EOF
pause
Congratulations! Your Application has successfully installed.
EXIT