:: --------------------------------------------
:: Installation Program for Symantec On Target
:: (c) 1991 AdWare, Inc.
:: --------------------------------------------
echo off
cls
:: ------------------------------------ Get rid of colon, if typed in
if "%1" == "" goto nodrive
if "%1" == "c:" install C
if "%1" == "C:" install C
if "%1" == "d:" install D
if "%1" == "D:" install D
if "%1" == "e:" install E
if "%1" == "E:" install E
if "%1" == "f:" install F
if "%1" == "F:" install F
if "%1" == "g:" install G
if "%1" == "G:" install G
if "%1" == "h:" install H
if "%1" == "H:" install H
if "%1" == "i:" install I
if "%1" == "I:" install I
if "%1" == "j:" install J
if "%1" == "J:" install J
if "%1" == "k:" install K
if "%1" == "K:" install K
if "%1" == "l:" install L
if "%1" == "L:" install L
if "%1" == "m:" install M
if "%1" == "M:" install M
if "%1" == "n:" install N
if "%1" == "N:" install N
if "%1" == "o:" install O
if "%1" == "O:" install O
if "%1" == "p:" install P
if "%1" == "P:" install P
if "%1" == "q:" install Q
if "%1" == "Q:" install Q
if "%1" == "r:" install R
if "%1" == "R:" install R
if "%1" == "s:" install S
if "%1" == "S:" install S
if "%1" == "t:" install T
if "%1" == "T:" install T
if "%1" == "u:" install U
if "%1" == "U:" install U
if "%1" == "v:" install V
if "%1" == "V:" install V
if "%1" == "w:" install W
if "%1" == "W:" install W
if "%1" == "x:" install X
if "%1" == "X:" install X
if "%1" == "y:" install Y
if "%1" == "Y:" install Y
if "%1" == "z:" install Z
if "%1" == "Z:" install Z
::
:: ------------------------------------ Check for enough space on drive
echo off
free %1: 2300000
if errorlevel 1 goto nofree
::
:: ------------------------------------ Check for Installation Conditions
::
if not exist OT_pak.exe goto filefail
if not exist OTDEMO.BAT goto filefail
::
:: ------------------------------------ Start Installation
::
echo
echo       On Target Demo Disk Install
echo       様様様様様様様様様様様様様様様様様様�
echo
echo       Make sure that your On Target Demo
echo       Disk is in disk drive A: or B:
echo       陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳�
echo
echo       This installation program will create
echo       a directory called %1:\OTDEMO.
echo
echo       2.3 megabytes of free disk space
echo       on your %1: drive is required for
echo       the installation process.
echo       陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳�
echo
echo       To quit this installation,
echo       press [CTRL] [C] or [CTRL] [BREAK].
echo
echo       Or press any key to continue
pause >nul
cls
:: ------------------------------------ Make directory
md %1:\OTDEMO
:: ------------------------------------ Mask out "Unable to create directory"
cls
echo �
echo       On Target Demo Disk Install
echo       様様様様様様様様様様様様様様様様様
echo
echo       Now unpacking demo files onto your
echo       %1: hard disk drive partition...
echo       陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳
echo
:: ------------------------------------ unpack demo and copy batch file
OT_pak %1:\OTDEMO
if errorlevel 1 goto failinst
copy OTDEMO.bat %1:\OTDEMO
if errorlevel 1 goto failinst
:: cls
goto success

:: --------
:success
:: --------
::
:: ----------------------------------- Change to user designated drive
::
%1:\
cd \OTDEMO
::
:: ----------------------------------- Check for unsuccessful unzip
::
if not exist OT_demo.exe goto failinst
if not exist OTDEMO.bat goto failinst
::
:: ----------------------------------- Putup successful message
::
cls
echo
echo       On Target Demo Disk Install
echo       様様様様様様様様様様様様様様様様様様
echo
echo       You have successfully installed the
echo       On Target demo.
echo
echo       To start the demo, type: OTDEMO
echo       and press the Enter key.
echo       陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳
goto exit

:: --------
:failinst
:: --------
:: ----------------------------------- Change File Name for Current Demo
::
cls
echo       On Target Demo Disk Install Problem 1
echo   �
echo       様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo
echo       We are sorry, but an error occured during the
echo       unpacking of the On Target demo files
echo
echo       To correctly install on your hard disk
echo �     drive, type:
echo
echo       "INSTALL X"
echo
echo         (X is the hard disk drive
echo          partition you designate)
echo       陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳�
echo
echo       You can quit by pressing [CTRL] [C] or [CTRL] [BREAK]
echo       Or press any key for more information
echo
pause >nul
:: --------
cls
echo       On Target Demo Disk Install Problem 2
echo   �
echo       様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo
echo       A likely problem was the failure of
echo       the installation program to properly
echo       "unpack" the key demo file:
echo
echo �	  	 OT_PAK.EXE
echo
echo       Check to see if these files are in your
echo       %1:\OTDEMO directory.  If they exist, then
echo       simply type OTDEMO and see if the demo plays.
echo
echo       If they don't exist, then please try again.
echo       陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳�
echo
echo       You can quit by pressing [CTRL] [C] or [CTRL] [BREAK]
echo       Or press any key for more information
echo
pause >nul
:: --------
cls
echo       On Target Demo Disk Install Problem 3
echo       様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo   �
echo �	   If you fail again, then try manually
echo �	   installing the demo as follows:
echo   �
echo �	   1. Make a directory called OTDEMO on your hard drive
echo �	      陳 Make sure you have at least 2.3MB of free space
echo
echo �	   2. Copy the OT_PAK.EXE and OTDEMO.BAT files
echo �	      from the demo disk into the \QPDEMO directory
echo
echo �	   3. Type: "CD \OTDEMO"
echo
echo �	   4. Type: "OT_PAK" and watch the demo unpack itself
echo
echo �	   5. Type: OTDEMO
echo
echo �	   We're sorry you had to go through this
echo �	   陳 but the demo should work now!
echo       陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳�
goto exit

:: --------
:nofree
:: --------
cls
echo
echo       On Target Demo Disk Install
echo       様様様様様様様様様様様様様様様様様様様様
echo
echo       We are sorry, but the hard disk drive
echo       partition you selected (%1:) does not
echo       have enough free space to copy the
echo       On Target demo files.
echo
echo       Or, the %1: hard disk drive partition
echo       you selected does not exist or was
echo       incorrectly typed in.
echo�
echo       Please remove any unnecessary files
echo       and directories to create at least 2.3MB
echo       of free disk space, then repeat the
echo       installation, or choose another valid
echo       partition with sufficient space.
echo       陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳
goto exit

:: --------
:nodrive
:: --------
echo
echo       Welcome to the On Target Demo Disk:
echo       様様様様様様様様様様様様様様様様様様様様様様様様様様様様
echo
echo       This diskette contains compressed files and must be
echo       properly installed on a hard-drive before you can run the
echo       On Target Demo.  (The demo takes 2.3 megabytes of
echo       hard disk space.)
echo
echo       NOTE: Although On Target is a Windows 3.0 application,
echo       this demo disk only runs in DOS.
echo
echo       To install:
echo       1. Put the On Target Demo Disk in Drive A: or B:
echo       2. From the DOS A: or B: prompt,
echo          type:  INSTALL C: and press [ENTER].
echo          (If you want to install on a drive other than C:,
echo           type INSTALL and the appropriate drive letter.) 
echo�
echo       During installation, a \OTDEMO directory is created 
echo �     containing the On Target Demo files.
echo       陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳
echo
echo       To run the demo, type OTDEMO from the \OTDEMO directory.
goto exit
:: --------
:filefail
:: --------
cls
echo
echo       On Target Demo Disk Install
echo       様様様様様様様様様様様様様様様様様様�
echo
echo       One of the following files is missing
echo       from your On Target Demo Disk:
echo
echo �	  	OT_PAK.EXE
echo �	  	OTDEMO.BAT
echo       陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳陳�
goto exit

:: --------
:exit
:: --------
echo�
echo       Press any key to continue
pause >nul
exit
