home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Sourcebook of American History
/
CD_SourcebookofAmericanHistory_InfoBase_1992.bin
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1992-10-29
|
9KB
|
224 lines
echo off
rem CD SourceBook Installation Procedure - Version 1.01 - Disc 1.0
rem March 14, 1991 - GJE
cls
if not exist \HISTORY.001 goto wrong_disc
if %1' == ' goto help
echo ════════════════════════════════════════════════════════════════════════
echo Infobases International InCorp.
echo CD SourceBook of American History
echo Hard Disk Installation Procedure
echo ════════════════════════════════════════════════════════════════════════
echo Checking your %1 disk drive... please wait.
if %1 == c: goto start
if %1 == C: goto start
if %1 == d: goto start
if %1 == D: goto start
if %1 == e: goto start
if %1 == E: goto start
if %1 == f: goto start
if %1 == F: goto start
if %1 == g: goto start
if %1 == G: goto start
if %1 == h: goto start
if %1 == H: goto start
if %1 == i: goto start
if %1 == I: goto start
if %1 == j: goto start
if %1 == J: goto start
if %1 == k: goto start
if %1 == K: goto start
if %1 == l: goto start
if %1 == L: goto start
if %1 == m: goto start
if %1 == M: goto start
if %1 == n: goto start
if %1 == N: goto start
if %1 == o: goto start
if %1 == O: goto start
if %1 == p: goto start
if %1 == P: goto start
if %1 == q: goto start
if %1 == Q: goto start
if %1 == r: goto start
if %1 == R: goto start
if %1 == s: goto start
if %1 == S: goto start
if %1 == t: goto start
if %1 == T: goto start
if %1 == u: goto start
if %1 == U: goto start
if %1 == v: goto start
if %1 == V: goto start
if %1 == w: goto start
if %1 == W: goto start
if %1 == x: goto start
if %1 == X: goto start
if %1 == y: goto start
if %1 == Y: goto start
if %1 == z: goto start
if %1 == Z: goto start
goto bad_letter
rem
:start
if not exist %1\nul goto bad_drive
rem
cls
echo ════════════════════════════════════════════════════════════════════════
echo CD SourceBook - Hard Disk Installation Procedure
echo ════════════════════════════════════════════════════════════════════════
echo This installation procedure is optional. You can run CD SourceBook
echo directly on your CD-ROM drive without installing any files to your hard
echo disk. To do so, type the following at the DOS prompt:
echo
echo R: ─┘ where "R:" is your CD-ROM drive
echo HISTORY ─┘ ─┘ means press the Enter key
echo ────────────────────────────────────────────────────────────────────────
echo If you would like to select a certain printer for use with CD SourceBook,
echo or if you would like to change CD SourceBook default parameters described
echo in the online user's manual, you should continue with this installation
echo procedure.
echo ────────────────────────────────────────────────────────────────────────
echo This installation procedure will create a directory called \HISTORY on
echo your %1 drive and copy the CD SourceBook software into it. About 250K
echo bytes on your disk will be used.
echo ────────────────────────────────────────────────────────────────────────
echo You may abort this installation procedure now by pressing Ctrl-C, or
pause
cls
echo ════════════════════════════════════════════════════════════════════════
echo Installing CD SourceBook
echo ════════════════════════════════════════════════════════════════════════
echo Creating %1\HISTORY directory...
echo ────────────────────────────────────────────────────────────────────────
if not exist %1\HISTORY\nul goto continue
echo PLEASE NOTE!
echo ────────────────────────────────────────────────────────────────────────
echo The %1\HISTORY directory already exists. CD SourceBook may have already
echo been installed.
echo
echo You may abort this installation procedure now by pressing Ctrl-C, or
pause
:continue
if not exist %1\HISTORY\nul md %1\HISTORY
echo Copying files to %1\HISTORY...
echo ────────────────────────────────────────────────────────────────────────
copy \history.bat %1\HISTORY >nul
if not exist %1\HISTORY\history.bat goto error
copy \runtime.exe %1\HISTORY >nul
if not exist %1\HISTORY\runtime.exe goto error
copy \runtime.com %1\HISTORY >nul
if not exist %1\HISTORY\runtime.com goto error
copy \views.cfg %1\HISTORY >nul
if not exist %1\HISTORY\views.cfg goto error
if not exist %1\HISTORY\views.ptr copy \views.ptr %1\HISTORY >nul
if not exist %1\HISTORY\views.ptr goto error
rem
echo INSTALLATION COMPLETE!
echo ════════════════════════════════════════════════════════════════════════
echo To run The CD SourceBook, type the following at the DOS prompt:
echo
echo %1 ─┘
echo CD \HISTORY ─┘
echo HISTORY R: ─┘
echo where "R:" is your CD-ROM drive letter
echo ─┘ means press the Enter key
echo ────────────────────────────────────────────────────────────────────────
%1
cd \history
pause
goto check
rem
:wrong_disc
echo ════════════════════════════════════════════════════════════════════════
echo PLEASE NOTE!
echo ════════════════════════════════════════════════════════════════════════
echo Please make the CD-ROM drive containing CD SourceBook the default drive
echo before running this installation procedure.
echo
echo To do so, type the following at the DOS prompt:
echo
echo R: ─┘
echo where "R:" is your CD-ROM drive
echo ─┘ means press the Enter key
echo ────────────────────────────────────────────────────────────────────────
goto check
rem
:error
echo ════════════════════════════════════════════════════════════════════════
echo ERROR!
echo ════════════════════════════════════════════════════════════════════════
echo The installation procedure could not copy the Cd SourceBook software to
echo your %1 hard disk drive.
echo
echo Before trying the installation procedure again, please verify that
echo %1 is a valid drive letter and that there is at least 250K bytes of
echo available space on that hard disk drive.
echo ────────────────────────────────────────────────────────────────────────
goto exit
rem
:check
if not exist %1\HISTORY.001 goto exit
echo ════════════════════════════════════════════════════════════════════════
echo PLEASE NOTE!
echo ════════════════════════════════════════════════════════════════════════
echo Your %1 drive contains a file called HISTORY.001 in the root directory
echo (%1\). Please delete or rename this file or Cd SourceBook may not
echo run correctly.
echo ────────────────────────────────────────────────────────────────────────
echo To delete this file, type the following at the DOS prompt:
echo
echo DEL %1\HISTORY.001 ─┘
echo
echo
echo To rename this file, type the following at the DOS prompt:
echo
echo REN %1\HISTORY.001 NEWNAME ─┘
echo where "NEWNAME" is any
echo valid DOS filename.
echo
echo ─┘ means press the
echo Enter key
echo ────────────────────────────────────────────────────────────────────────
goto exit
rem
:bad_letter
echo ════════════════════════════════════════════════════════════════════════
echo ERROR!
echo ════════════════════════════════════════════════════════════════════════
echo The drive designation you specified, %1, is not valid. You may have used
echo an invalid Hard drive letter, or you may not have included a colon (:).
echo
echo Please try this installation procedure again, using a valid Hard drive
echo designation.
echo
echo Make sure you type a colon (:) after the drive letter.
echo ────────────────────────────────────────────────────────────────────────
goto exit
:bad_drive
echo ════════════════════════════════════════════════════════════════════════
echo ERROR!
echo ════════════════════════════════════════════════════════════════════════
echo The hard disk drive you specified, %1, does not exist or cannot be
echo accessed.
echo