home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
w
/
walmastr.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-03-12
|
1KB
|
76 lines
CLS
@ECHO OFF
SET VAL1=%1%
IF "%VAL1%" == "NOANSI" GOTO NOANSI
IF "%VAL1%" == "noansi" GOTO NOANSI
IF "%VAL1%" == "NOANSI16" GOTO NOANSI16
IF "%VAL1%" == "noansi16" GOTO NOANSI16
REM RUNS INTRO PAGE
BE TITLE.PAG
BE ASK ""
REM RUNS OPTIONS PAGE
:OPTIONS
CLS
BE OPT.CFG
BE ASK "" 54321 DEF=1 BLACK
IF ERRORLEVEL 5 GOTO DEFAULT
IF ERRORLEVEL 4 GOTO CUSTOM
IF ERRORLEVEL 3 GOTO BITMAPS
IF ERRORLEVEL 2 GOTO BITMAPS
IF ERRORLEVEL 1 GOTO EXIT
REM DEFAULT SECTION
:DEFAULT
CLS
IF NOT EXIST C:\WINDOWS\NUL GOTO NODEF
BE DEF.CFG
BE SA BLUE ON WHITE /N /C
IF %VAL1% == 16 GOTO 16COLUNZIP
PKUNZIP -3 -) WALSAMPL C:\WINDOWS *.*
:NEXT
BE DELAY 40
GOTO LOADED
:NODEF
CLS
BE NODEF.CFG
REM CUSTOM SECTION
:CUSTOM
IF %VAL1% == 16 GOTO SET16COL
:NEXT2
CLS
BE NEW1.CFG
ECHO
PROMPT $e[15;36H$e[30;47m?
GOTO OUT
REM INSTALLATION COMPLETE MESSAGES
:LOADED
CLS
BE LDED1.CFG
BE ASK ""
BE LDED2.CFG
BE ASK ""
GOTO EXIT
REM UNZIPS 16 COLOR BMP'S TO WINDOWS DIRECTORY
:16COLUNZIP
PKUNZIP -3 -) WALSAM16 C:\WINDOWS *.*
GOTO NEXT
:SET16COL
COPY 16.COL 16.SET
GOTO NEXT2
REM BITMAPS VERIFICATION
:BITMAPS
BE LDED.CFG
BE ASK ""
GOTO OPTIONS
REM USER DEFINED COLOR AND ANSI REQUIREMENTS
:NOANSI
CALL NOANSI
GOTO OUT
:NOANSI16
CALL NOANS16
GOTO OUT
REM EXIT OPTIONS
:EXIT
CALL EXITING
:OUT