home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
BUSINESS
/
CL.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-01-15
|
6KB
|
184 lines
@ECHO OFF
IF NOT EXIST LS7.K2 GOTO FIX
GOTO NFIXDAT
:FIX
IF EXIST LS1.DAT GOTO FIXIT
GOTO NFIXDAT
:FIXIT
DEL LS1.*>NUL
IF EXIST LS2.* DEL LS2.* >NUL
IF EXIST LS3.* DEL LS3.* >NUL
IF EXIST LS4.* DEL LS4.* >NUL
IF EXIST LS5.* DEL LS5.* >NUL
IF EXIST LS6.* DEL LS6.* >NUL
IF EXIST LS7.* DEL LS7.* >NUL
:NFIXDAT
IF NOT EXIST C.CL GOTO TRYAGAIN
REN C.CL C.BAT >NUL
REN LS.CL LS.EXE >NUL
REN GETKEY.CL GETKEY.COM >NUL
REN LSFIX.CL LSFIX.EXE >NUL
REN IMPEX.CL IMPEX.EXE >NUL
:TRYAGAIN
IF NOT EXIST C.BAT GOTO ENDING
CLS
ECHO.
ECHO.
ECHO.
ECHO.
:STARTER
ECHO.
ECHO.
ECHO ╔═════════════════════════════════╗
ECHO ║ Contact-Lens! must run only ║
ECHO ║ when your environment variable ║
ECHO ║ FILES = 99. If there are not ║
ECHO ║ enough file handles present ║
ECHO ║ when you run Contact-Lens!, ║
ECHO ║ it will not work. This program ║
ECHO ║ can change the FILES statement ║
ECHO ║ in CONFIG.SYS to 99 for you ! ║
ECHO ║ For your peace of mind, we will ║
ECHO ║ keep an unchanged copy of your ║
ECHO ║ CONFIG.SYS file and it will be ║
ECHO ║ saved,in the same directory, as ║
ECHO ║ CONFIG.CL2. ║
ECHO ╚═════════════════════════════════╝
ECHO.
ECHO.
ECHO Make the necessary change to CONFIG.SYS (SAY YES!) (Y/N) ?
GETKEY
IF ERRORLEVEL 122 GOTO STARTERT
IF ERRORLEVEL 121 GOTO CHCNFG
IF ERRORLEVEL 120 GOTO STARTERT
IF ERRORLEVEL 119 GOTO STARTERT
IF ERRORLEVEL 118 GOTO STARTERT
IF ERRORLEVEL 117 GOTO STARTERT
IF ERRORLEVEL 116 GOTO STARTERT
IF ERRORLEVEL 115 GOTO STARTERT
IF ERRORLEVEL 114 GOTO STARTERT
IF ERRORLEVEL 113 GOTO STARTERT
IF ERRORLEVEL 112 GOTO STARTERT
IF ERRORLEVEL 111 GOTO STARTERT
IF ERRORLEVEL 110 GOTO ENDER
IF ERRORLEVEL 109 GOTO STARTERT
IF ERRORLEVEL 108 GOTO STARTERT
IF ERRORLEVEL 107 GOTO STARTERT
IF ERRORLEVEL 106 GOTO STARTERT
IF ERRORLEVEL 105 GOTO STARTERT
IF ERRORLEVEL 104 GOTO STARTERT
IF ERRORLEVEL 103 GOTO STARTERT
IF ERRORLEVEL 102 GOTO STARTERT
IF ERRORLEVEL 101 GOTO STARTERT
IF ERRORLEVEL 100 GOTO STARTERT
IF ERRORLEVEL 99 GOTO STARTERT
IF ERRORLEVEL 98 GOTO STARTERT
IF ERRORLEVEL 97 GOTO STARTERT
IF ERRORLEVEL 96 GOTO STARTERT
IF ERRORLEVEL 95 GOTO STARTERT
IF ERRORLEVEL 94 GOTO STARTERT
IF ERRORLEVEL 93 GOTO STARTERT
IF ERRORLEVEL 92 GOTO STARTERT
IF ERRORLEVEL 91 GOTO STARTERT
IF ERRORLEVEL 90 GOTO STARTERT
IF ERRORLEVEL 89 GOTO CHCNFG
IF ERRORLEVEL 88 GOTO STARTERT
IF ERRORLEVEL 87 GOTO STARTERT
IF ERRORLEVEL 86 GOTO STARTERT
IF ERRORLEVEL 85 GOTO STARTERT
IF ERRORLEVEL 84 GOTO STARTERT
IF ERRORLEVEL 83 GOTO STARTERT
IF ERRORLEVEL 82 GOTO STARTERT
IF ERRORLEVEL 81 GOTO STARTERT
IF ERRORLEVEL 80 GOTO STARTERT
IF ERRORLEVEL 79 GOTO STARTERT
IF ERRORLEVEL 78 GOTO ENDER
:STARTERT
CLS
ECHO.
ECHO.
ECHO.
ECHO You inadvertently pressed the wrong key ! Please try again...
GOTO STARTER
:CHCNFG
CLS
@ECHO OFF
IF NOT EXIST C:\CONFIG.CL2 GOTO DOIT
GOTO DOIT2
:DOIT
ECHO Making requested copy, then updating the original CONFIG.SYS file...
COPY C:\CONFIG.SYS C:\CONFIG.CL2 >NUL
ECHO FILES = 99 >> C:\CONFIG.SYS
ECHO Done.
GOTO DOIT3
:DOIT2
ECHO NOTE: C:\CONFIG.CL2 already exists ! Since CONFIG.SYS has already been
ECHO copied to CONFIG.CL2, CONFIG.SYS has already been altered for you.
:DOIT3
ECHO.
ECHO The Shareware version of Contact-Lens! v2.2 is now INSTALLED !
ECHO.
ECHO PLEASE: 1. Read the README.TXT file. It will help you get the most
ECHO out of Contact-Lens! v2.2.
ECHO 2. Fill in and mail the Registration Form REGISTER.FRM.
ECHO.
ECHO Thank you for supporting the Shareware concept (see #2 above).
ECHO.
ECHO Turn your computer off and back on (reboot) after pressing any key as
ECHO shown below. THEN change to this directory & type C for Contact-Lens!
ECHO.
PAUSE
GOTO ENDED
:ENDER
CLS
ECHO 1. Read the "README.TXT" file to get the most out of Contact-Lens!
ECHO 2. Mail the Registration Form (see the file named "REGISTER.FRM").
ECHO.
ECHO NOTE: You did NOT allow the installation program to change the FILES=
ECHO statement in your CONFIG.SYS file. IF YOU CAN'T RUN CONTACT-LENS!,
ECHO REBOOT, AND RUN THIS INSTALLATION PROGRAM AGAIN. The installation
ECHO program will reconfigure Contact-Lens! to run on your computer, and
ECHO then will change the "FILES=" statement in your CONFIG.SYS file if you
ECHO (AND YOU SHOULD) allow it.
ECHO.
ECHO Contact-Lens! requires more FILES running under Windows than under DOS.
ECHO Therefore the program may run in DOS - but not under Windows. To prevent
ECHO this problem or the inability to run this program under DOS, reboot
ECHO your computer and run this INSTALL.BAT program again, from this dir-
ECHO rectory; then state YES to change your CONFIG.SYS file.
ECHO.
ECHO Contact-Lens! v2.2 Shareware Version has been INSTALLED !
ECHO Thank you for supporting the Shareware concept (#2 above).
ECHO.
ECHO Press a key as shown below, and THEN type C, to run Contact-Lens!
ECHO If the program ever doesn't work, run INSTALL.BAT to change CONFIG.SYS !
PAUSE
GOTO ENDED
:ENDING
CLS
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Unsuccessful attempt at running the Contact-Lens!
ECHO Unregistered Shareware Version Installation Program,
ECHO.
ECHO INSTALL.BAT
ECHO.
ECHO ╔═════════════════════════════════════════╗
ECHO ║ Files needed for INSTALL.BAT to run are ║
ECHO ║ not in this directory. Please switch to ║
ECHO ║ the directory where CL.ZIP was unZIP- ║
ECHO ║ ped and then run INSTALL.BAT again ! ║
ECHO ╚═════════════════════════════════════════╝
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
PAUSE
:ENDED