home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DeathMatch Manifesto
/
DEATHMATCH.ISO
/
walkthru
/
quake106
/
install.bat
Wrap
DOS Batch File
|
1997-01-26
|
9KB
|
249 lines
@echo off
if "%2"=="" goto help
if "%2"=="EPI" goto copy_episode
if "%2"=="epi" goto copy_episode
if "%3"=="" goto special
goto normal
:special
if "%2"=="ALL" goto copy_all
if "%2"=="all" goto copy_all
goto help
:normal
if "%3"=="0" goto normal_noway
if "%3"=="9" goto normal_noway
if not "%2"=="1" if not "%2"=="2" if not "%2"=="3" if not "%2"=="4" goto normal_noway
cls
echo After installation, you will find a QDEMOS.TXT help file and a batch file
echo QDEMOS.BAT to run the demos in your Quake directory. Please read the text
echo file closely and use the batch file to run my demos. A QDEMOS.CFG file
echo will also be copied to Quake's \ID1 subdirectory. This config file is used
echo to be able to easily play the demos from within Quake by using the F1-F4 keys.
echo.
echo.
echo NOTE: In case that you're asked whether to overwrite a file, confirm the
echo question with YES. If ever there happens to be such a question, it
echo will only overwrite one or more of the files *I* provided. NONE of
echo your files will be overwritten, or even touched!
echo If you see a message saying "directory already exists", ignore these.
echo It only means that INSTALL tried to create a directory which already
echo exists. Due to the nature of *.BAT files it is very hard to check for
echo existing directories, so I took the easier way, it doesn't hurt
echo anything though!
echo.
echo I will now copy the demo file for Episode %2, Level %3 (E%2M%3)
echo to the directory %1\ID1\DEMOS
echo Please note that this requires about 2 MB of free disk space.
echo.
echo If you notice that either the Episode or Level number is invalid, or if
echo the path is incorrect, break now by pressing STRG+C.
pause
MD %1\ID1
CD %1\ID1
MD %1\ID1\DEMOS
CD %1\ID1\DEMOS
CD DEMOS
echo.
echo Copying QUAKE%2_%3.DEM to %1\ID1\DEMOS
echo Copying QUAKE%2_%3.TXT to %1\ID1\DEMOS
COPY QUAKE%2_%3.* %1\ID1\DEMOS
echo.
echo Copying QDEMOS.CFG (adds F1-F4 hotkeys) to %1\ID1
echo Copying QDEMOS.TXT (help file) to %1
echo Copying QDEMOS.BAT (easily view the demos) to %1
COPY QDEMOS.CFG %1\ID1
COPY QDEMOS.TXT %1
COPY QDEMOS.BAT %1
echo.
echo Copying UNINSTDM.BAT (Demos Uninstaller) to %1
COPY UNINSTDM.BAT %1
CD..
CD %1
echo.
echo Copying done!
echo Now go to %1 and type "QDEMOS %2 %3" to view
echo the demo file that was just copied.
echo You will now see the QDEMOS.TXT file...
pause
MORE < %1\QDEMOS.TXT
goto exit
:copy_episode
if "%3"=="" goto no_episode
if not "%3"=="1" if not "%3"=="2" if not "%3"=="3" if not "%3"=="4" goto episode_noway
cls
echo After installation, you will find a QDEMOS.TXT help file and a batch file
echo QDEMOS.BAT to run the demos in your Quake directory. Please read the text
echo file closely and use the batch file to run my demos. A QDEMOS.CFG file
echo will also be copied to Quake's \ID1 subdirectory. This config file is used
echo to be able to easily play the demos from within Quake by using the F1-F4 keys.
echo.
echo.
echo NOTE: In case that you're asked whether to overwrite a file, confirm the
echo question with YES. If ever there happens to be such a question, it
echo will only overwrite one or more of the files *I* provided. NONE of
echo your files will be overwritten, or even touched!
echo If you see a message saying "directory already exists", ignore these.
echo It only means that INSTALL tried to create a directory which already
echo exists. Due to the nature of *.BAT files it is very hard to check for
echo existing directories, so I took the easier way, it doesn't hurt
echo anything though!
echo.
echo I will now copy the demo files for Episode %3
echo to the directory %1\ID1\DEMOS
echo *** Please note that this requires about 14 MB of free disk space.
echo.
echo If you notice that either the Episode or Level number is invalid, or if
echo the path is incorrect, break now by pressing STRG+C.
pause
MD %1\ID1
CD %1\ID1
MD %1\ID1\DEMOS
CD %1\ID1\DEMOS
CD DEMOS
echo.
echo Copying QUAKE%3*.DEM to %1\ID1\DEMOS
echo Copying QUAKE%3*.TXT to %1\ID1\DEMOS
COPY QUAKE%3*.* %1\ID1\DEMOS
echo.
echo Copying QDEMOS.CFG (adds F1-F4 hotkeys) to %1\ID1
echo Copying QDEMOS.TXT (help file) to %1
echo Copying QDEMOS.BAT (easily view the demos) to %1
COPY QDEMOS.CFG %1\ID1
COPY QDEMOS.TXT %1
COPY QDEMOS.BAT %1
echo.
echo Copying UNINSTDM.BAT (Demos Uninstaller) to %1
COPY UNINSTDM.BAT %1
CD..
CD %1
echo.
echo Copying done!
echo Now go to %1 and type "QDEMOS GO" to view
echo the demo files that were just copied.
echo You will now see the QDEMOS.TXT file...
pause
MORE < %1\QDEMOS.TXT
goto exit
:copy_all
cls
echo After installation, you will find a QDEMOS.TXT help file and a batch file
echo QDEMOS.BAT to run the demos in your Quake directory. Please read the text
echo file closely and use the batch file to run my demos. A QDEMOS.CFG file
echo will also be copied to Quake's \ID1 subdirectory. This config file is used
echo to be able to easily play the demos from within Quake by using the F1-F4 keys.
echo.
echo.
echo NOTE: In case that you're asked whether to overwrite a file, confirm the
echo question with YES. If ever there happens to be such a question, it
echo will only overwrite one or more of the files *I* provided. NONE of
echo your files will be overwritten, or even touched!
echo If you see a message saying "directory already exists", ignore these.
echo It only means that INSTALL tried to create a directory which already
echo exists. Due to the nature of *.BAT files it is very hard to check for
echo existing directories, so I took the easier way, it doesn't hurt
echo anything though!
echo.
echo I will now copy the demo files for all four Episodes
echo to the directory %1\ID1\DEMOS
echo.
echo ***Please note that this requires at least 50 MB of free disk space!!***
echo If you notice that either the Episode or Level number is invalid, or if
echo the path is incorrect, break now by pressing STRG+C.
pause
MD %1\ID1
CD %1\ID1
MD %1\ID1\DEMOS
CD %1\ID1\DEMOS
CD DEMOS
echo.
echo Copying QUAKE*.DEM to %1\ID1\DEMOS
echo Copying QUAKE*.TXT to %1\ID1\DEMOS
COPY QUAKE*.* %1\ID1\DEMOS
echo.
echo Copying QDEMOS.CFG (adds F1-F4 hotkeys) to %1\ID1
echo Copying QDEMOS.TXT (help file) to %1
echo Copying QDEMOS.BAT (easily view the demos) to %1
COPY QDEMOS.CFG %1\ID1
COPY QDEMOS.TXT %1
COPY QDEMOS.BAT %1
echo.
echo Copying UNINSTDM.BAT (Demos Uninstaller) to %1
COPY UNINSTDM.BAT %1
CD..
CD %1
echo.
echo Copying done!
echo Now go to %1 and type "QDEMOS GO" to view
echo the demo files that were just copied.
echo You will now see the QDEMOS.TXT file...
pause
MORE < %1\QDEMOS.TXT
goto exit
:help
echo.
echo Welcome to the Quake Demos Installer
echo ====================================
echo.
echo This program will copy the Quake demo files to your Quake directory
echo into a subdirectory of its own. The demo files will be copied to
echo a \QUAKE\ID1\DEMOS subdirectory so if you want to remove them simply
echo remove the DEMOS directory. A Quake demo is about 1-3 MB large so you
echo might not want to install all of them (needs 50 megabytes!).
echo.
echo SYNTAX: INSTALL.BAT [drive and path] [# #/epi #/all]
echo.
echo examples: INSTALL D:\GAMES\QUAKE 4 6
echo will copy the demo file for episode 4, level 6
echo to D:\GAMES\QUAKE\id1\demos
echo.
echo INSTALL C:\QUAKE epi 2
echo will copy all demo files for episode 2
echo to C:\QUAKE\id1\demos
echo.
echo INSTALL E:\3DGAMES\IDGAMES\Q106 all
echo will copy absolutely all demo files (50 megs)
echo to E:\3DGAMES\IDGAMES\Q106\id1\demos
echo.
goto exit
:normal_noway
echo.
echo Sorry pal, but the demo for Episode %2, Level %3 does not exist because
echo there is no Episode %2, Level %3 in Quake.
echo.
goto