home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inside Multimedia 1996 September
/
IMM0996.ISO
/
driver
/
diamond.mm
/
diamond
/
mmkit
/
hit_fm.exe
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-06-26
|
8KB
|
207 lines
@ECHO OFF
IF NOT EXIST LIBRARY.ZIP GOTO NOTSETUP
IF NOT EXIST PKUNZIP.EXE GOTO NOTSETUP
IF EXIST CHOICE.COM GOTO KILLSTART
:START
CLS
ECHO.
ECHO.
ECHO.
ECHO ╔═════════════════════════════════════════════╗
ECHO ║ Diamond Multimedia Systems ║
ECHO. ╟─────────────────────────────────────────────╢
ECHO ║ INSTALL.BAT will create an installation ║
ECHO ║ disk for the Diamond Multimedia Kit. ║
ECHO ║ ║
ECHO ║ Press "C" to continue, or "Q" to quit. ║
ECHO ║ ║
ECHO ╚═════════════════════════════════════════════╝
PKUNZIP LIBRARY.ZIP -E CHOICE.COM > NUL
CHOICE /C:C,Q /N
CLS
IF ERRORLEVEL 2 GOTO QUIT
ECHO.
ECHO.
ECHO.
ECHO ╔═════════════════════════════════════════════╗
ECHO ║ Diamond Multimedia Systems ║
ECHO. ╟─────────────────────────────────────────────╢
ECHO ║ ║
ECHO ║ Which floppy drive to install to? ║
ECHO ║ ║
ECHO ║ Press "A" or "B" ║
ECHO ║ ║
ECHO ╚═════════════════════════════════════════════╝
CHOICE /C:A,B /N
CLS
IF ERRORLEVEL 2 GOTO INSTALLB
IF ERRORLEVEL 1 GOTO INSTALLA
:INSTALLB
CLS
ECHO.
ECHO.
ECHO.
ECHO ╔═════════════════════════════════════════════╗
ECHO ║ Diamond Multimedia Systems ║
ECHO. ╟─────────────────────────────────────────────╢
ECHO ║ ║
ECHO ║ Insert a blank formatted floppy in drive B ║
ECHO ║ ║
ECHO ║ Press "C" to continue, or "Q" to quit. ║
ECHO ║ ║
ECHO ╚═════════════════════════════════════════════╝
CHOICE /C:C,Q /N
IF ERRORLEVEL 2 GOTO QUIT
GOTO DOB
:INSTALLA
CLS
ECHO.
ECHO.
ECHO.
ECHO ╔═════════════════════════════════════════════╗
ECHO ║ Diamond Multimedia Systems ║
ECHO. ╟─────────────────────────────────────────────╢
ECHO ║ ║
ECHO ║ Insert a blank formatted floppy in drive A ║
ECHO ║ ║
ECHO ║ Press "C" to continue, or "Q" to quit. ║
ECHO ║ ║
ECHO ╚═════════════════════════════════════════════╝
CHOICE /C:C,Q /N
IF ERRORLEVEL 2 GOTO QUIT
GOTO DOA
:DOB
CLS
IF EXIST B:*.* GOTO TRYAGAINB
ECHO The Diamond Multimedia Kit files are being placed on drive B. Please wait...
PKUNZIP LIBRARY.ZIP B: -D > NUL
IF EXIST B:\CHOICE.COM ECHO Y | DEL B:CHOICE.COM > NUL
CLS
ECHO.
ECHO.
ECHO.
ECHO ╔═════════════════════════════════════════════╗
ECHO ║ Diamond Multimedia Systems ║
ECHO. ╟─────────────────────────────────────────────╢
ECHO ║ ║
ECHO ║ You are now ready to install the ║
ECHO ║ Diamond Multimedia Kit. ║
ECHO ║ ║
ECHO ║ To complete the installation, type ║
ECHO ║ "B:INSTALL.EXE" ║
ECHO ║ ║
ECHO ╚═════════════════════════════════════════════╝
GOTO END
:DOA
CLS
IF EXIST A:*.* GOTO TRYAGAINA
ECHO The Diamond Multimedia Kit files are being placed on drive A. Please wait...
PKUNZIP LIBRARY.ZIP A: -D > NUL
IF EXIST A:\CHOICE.COM ECHO Y | DEL A:CHOICE.COM > NUL
CLS
ECHO.
ECHO.
ECHO.
ECHO ╔═════════════════════════════════════════════╗
ECHO ║ Diamond Multimedia Systems ║
ECHO. ╟─────────────────────────────────────────────╢
ECHO ║ ║
ECHO ║ You are now ready to install the ║
ECHO ║ Diamond Multimedia Kit. ║
ECHO ║ ║
ECHO ║ To complete the installation, type ║
ECHO ║ "A:INSTALL.EXE" ║
ECHO ║ ║
ECHO ╚═════════════════════════════════════════════╝
GOTO END
:TRYAGAINB
CLS
ECHO.
ECHO.
ECHO.
ECHO ╔═════════════════════════════════════════════╗
ECHO ║ Diamond Multimedia Systems ║
ECHO. ╟─────────────────────────────────────────────╢
ECHO ║ ║
ECHO ║ The disk in drive B has existing files. ║
ECHO ║ ║
ECHO ║ Insert a blank formatted floppy in drive B ║
ECHO ║ ║
ECHO ║ Press "C" to continue, or "Q" to quit. ║
ECHO ║ ║
ECHO ╚═════════════════════════════════════════════╝
CHOICE /C:C,Q /N
IF ERRORLEVEL 2 GOTO QUIT
GOTO DOB
:TRYAGAINA
CLS
ECHO.
ECHO.
ECHO.
ECHO ╔═════════════════════════════════════════════╗
ECHO ║ Diamond Multimedia Systems ║
ECHO. ╟─────────────────────────────────────────────╢
ECHO ║ ║
ECHO ║ The disk in drive A has existing files. ║
ECHO ║ ║
ECHO ║ Insert a blank formatted floppy in drive A ║
ECHO ║ ║
ECHO ║ Press "C" to continue, or "Q" to quit. ║
ECHO ║ ║
ECHO ╚═════════════════════════════════════════════╝
CHOICE /C:C,Q /N
IF ERRORLEVEL 2 GOTO QUIT
GOTO DOA
:NOTSETUP
CLS
ECHO.
ECHO.
ECHO.
ECHO ╔═════════════════════════════════════════════╗
ECHO ║ Diamond Multimedia Systems ║
ECHO. ╟─────────────────────────────────────────────╢
ECHO ║ ║
ECHO ║ Problem: All the files from the download ║
ECHO ║ must be in the same directory. ║
ECHO ║ Please run the self-exctracing ║
ECHO ║ file that was downloaded in a ║
ECHO ║ temporary directory. ║
ECHO ║ ║
ECHO ╚═════════════════════════════════════════════╝
GOTO END
:QUIT
CLS
ECHO.
ECHO.
ECHO.
ECHO ╔═════════════════════════════════════════════╗
ECHO ║ Diamond Multimedia Systems ║
ECHO. ╟─────────────────────────────────────────────╢
ECHO ║ ║
ECHO ║ You may make the installation disk by ║
ECHO ║ running INSTALL.BAT another time. ║
ECHO ║ ║
ECHO ╚═════════════════════════════════════════════╝
IF EXIST CHOICE.COM GOTO KILLEND
GOTO END
:KILLSTART
ECHO Y | DEL CHOICE.COM > NUL
GOTO START
:KILLEND
ECHO Y | DEL CHOICE.COM > NUL
GOTO END
:END
IF EXIST CHOICE.COM GOTO KILLEND