Category : Databases and related files
Archive   : STARTR10.ZIP
Filename : INSTALL.BAT

 
Output of file : INSTALL.BAT contained in archive : STARTR10.ZIP

echo off
IF X%1 == X goto outahere
if not exist startr10.zip goto nofile
echo Installing the Star Trek Video library is necessary ONLY if you want
echo to place the system on another drive or sub-directory. Install
echo will delete the system if it is in the current directory, so you need
echo to move STARTREK.DBF to a safe place before installing if you have
echo made any changes to the database. All changes will be lost otherwise.
echo Install should only be started by typing 'install c:' or any
echo other valid drive. You MUST have the colon after the drive letter,
echo and you cannot include a sub-directory name, otherwise the install
echo process will be hosed.
echo Also note that you need AT LEAST a half meg of free space to install
echo and run the Star Trek Video Library.
echo This install program is about to delete any startrek files (except
echo the STARTR10.ZIP file) and install the files on drive %1.
echo If you do not want the files deleted from the current drive and
echo directory, you need to ABORT and install the files yourself
echo as described in the manual.
echo Hit ctrl-c to ABORT, or any other key to install the
echo Star Trek Video Library on %1 in the STARTREK subdirectory.
pause
del startrek.exe
del st.bat
del st.mem
del startrek.dbf
md %1\STARTREK
cd %1\STARTREK
pkunzip startr10 %1
echo Star Trek Video Library installed.
echo *Please* note that you WILL get an INDEX ERROR the first time
echo you run the program - this is perfectly normal, since the index files
echo must be built by the program. Execute the program by typing
echo STARTREK or just ST from inside the STARTREK directory on %1.
echo Successfully installed, hit ctrl-c to finish, or any other key to
echo start running the Star Trek Video Library ...
pause
%1
st
:outahere
echo Install should only be started by typing 'install c:' or any
echo other valid drive. You MUST have the colon after the drive letter,
echo and you cannot include a sub-directory name, otherwise the install
echo process will be hosed.
goto end
:nofile
echo The file named startr10.zip was not found. It is needed for the install
echo process to run sucessfully.
:end
echo Exiting install process, Star Trek Video Library was not installed.