Metropoli BBS
VIEWER: winstall.bat MODE: TEXT (ASCII)
@echo off

rem (c) Copyright 1992
rem Colorado Memory Systems inc.,
rem All Rights Reserved.

rem *** Run the Install software ***
install.exe %3 %4 F

rem *** Check the exit code on the install. If success the exit code = 0;
rem *** otherwise the exit code is some number greater than 0;
rem *** if the error code is greater that 0 create a file called
rem *** 'error.out' with the number 1 in it.

if not errorlevel 1 goto exit

rem *** The following is for install.exe to tell windows to print the
rem *** ASPI reboot message instead of the restart windows msg.
rem *** Note that the installation for this errorlevel was successful

if errorlevel 2 goto aspi_reboot

rem *** Change Drive to the install drive ***
%1:

rem *** Change Directory to the install directory ***
cd %2

rem  write 1 in error.out
echo 1 > error.out

goto exit

:aspi_reboot

rem  write 2 in error.out
echo 2 > error.out

:exit
@echo on



[ RETURN TO DIRECTORY ]