home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HomeWare 14
/
HOMEWARE14.bin
/
music
/
jammer20.arj
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-07-16
|
4KB
|
121 lines
echo off
cls
rem --- make sure the user specified valid drive letter (we allow A thru H)
rem for both the source and dest drives.
if %1a == a goto noDriveSpecified
if %1 == a: goto checkDest
if %1 == A: goto checkDest
if %1 == b: goto checkDest
if %1 == B: goto checkDest
goto notOnThatDrive
:checkDest
if %2a == a goto noDriveSpecified
if %2 == c: goto begin
if %2 == C: goto begin
if %2 == d: goto begin
if %2 == D: goto begin
if %2 == e: goto begin
if %2 == E: goto begin
if %2 == f: goto begin
if %2 == F: goto begin
if %2 == g: goto begin
if %2 == G: goto begin
if %2 == h: goto begin
if %2 == H: goto begin
goto noDriveSpecified
:begin
echo ╔═══════════════════════════════════════════════════════════════════════╗
echo ║ The Jammer Pro 2.0 Demo Installation ║
echo ║ From SoundTrek via Sound Management MIDI BBS ║
echo ║ 708-949-MIDI 6 gigs of MIDI online! ║
echo ║ This will create a directory called %2\JAM20 on your destination ║
echo ║ disk, and will install The Jammer Demo in that directory. ║
echo ║ ║
echo ║ If you don't want to install The Jammer Demo now, press Ctrl-Break. ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════════════╝
pause
rem --- create \JAM20 on the current drive.
echo
echo Creating directory %2\JAM20...
if not exist %2\JAM20\*.* goto go_on
rem --- \JAM20 dir already exists.
:directoryExists
echo
echo There is already a \JAM20 directory on drive %2. If you don't want to
echo install The Jammer Demo into that directory, press Ctrl-Break.
echo Otherwise, press any key to install The Jammer Demo into %2\JAM20.
pause
goto go_on2
:go_on
md %2\JAM20
:go_on2
rem --- make sure source drive contains Disk 1
:1a
if exist %1\instdmo.exe goto 1b
echo
echo Insert The Jammer Demo Disk in drive %1 or press Ctrl-Break to exit.
pause
goto 1a
:1b
rem --- unarc instdmo.exe
echo
echo Installing The Jammer Pro 2.0 Demo
%2
cd \jam20
%1\instdmo.exe -o
if not exist %2\JAM20\jammer.exe goto error
rem --- installation was successful!
:installDone
cd %2\JAM20
echo
echo The Jammer Demo is now installed on your destination disk.
echo To run it, type "JAMMER".
echo
%2
goto done
rem --- user didn't specify a drive letter followed by a colon.
:noDriveSpecified
echo
echo Jammer Installation Instructions:
echo ───────────────────────────────────────────────────────────────────────
echo
echo To install The Jammer Demo enter the following command
echo at the DOS prompt:
echo
echo INSTALL source_drive destination_drive
echo
echo For example, if you are installing from floppy drive A:
echo to hard drive C:, type the following command:
echo
echo INSTALL A: C:
echo
goto errorDone
rem --- user specified invalid drive letter.
:notOnThatDrive
echo
echo Installation Error: Each drive letter must be a letter from A to H,
echo and must be followed by a colon. For example, "INSTALL A: C:" will
echo install The Jammer Demo from drive A: to hard drive C:.
goto errorDone
rem --- general installation error.
:error
echo
echo Installation Error: Perhaps there isn't enough space on your destination
echo disk. The Jammer Demo requires about 2 megabytes of free space.
goto errorDone
rem --- goto here after an error is detected, to print a message and exit.
:errorDone
echo
echo The Jammer Demo was not installed.
echo
:done