rem GERMAN DEMO INSTALL SCRIPT
:start

clear
space %1: 3500 NoMinSpace
godir %1:%4 CantCreate

IF NOT EXIST *.* goto cherry



echo                /// WARNUNG \\\
echo
echo  Das Installationsverzeichnis enth„lt bereits
echo  Dateien.
echo
echo  Um sicherzustellen, daá richtig installiert
echo  wird, entfernen Sie bitte alle Dateien aus
echo  diesem Verzeichnis.
echo
echo  M”chten Sie die Installation fortsetzen?
echo
echo                     (J/N)
pick  jn   cherry  alldone


:cherry
rem *** create the game directories on the hard disk ***
godir %1:%4\save
godir %1:%4\sound
godir %1:%4\sim
godir %1:%4\sim\save



rem ///////////// minimum install \\\\\\\\\\\\\\\\\\
:minInst
space %1: 3500 NoMinSpace
clear
rem *** copy minimum files for sim and shell ***
:minfiles
godir %1:%4\sim
copy  %2:\sim\subsim.exe
copy  %2:\sim\common.ali
copy  %2:\sim\shades.
copy  %2:\sim\radiolog.dat
copy  %2:\sim\invibutt.def
copy  %2:\sim\shape.lst
copy  %2:\sim\language.txt
copy  %2:\sim\shapes.vol
copy  %2:\sim\*.shd
godir %1:%4\sim\save
copy  %2:\sim\save\*.* /s

goto  copyMinFiles
rem \\\\\\\\\\\\ end minimum install //////////////////






:copyMinFiles
rem *** copy files to install destination directory ***
godir %1:%4
copy %2:\aod\files\*.dat
copy %2:\aod\files\playflic.exe
copy %2:\aod\sound\soundset.exe
copy %2:\aod\sound\soundset.ini

rem *** copy files to sound directory ***
godir %1:%4\sound
copy %2:\aod\sound\sonarret.raw  /s
copy %2:\aod\sound\*.bnk         /s
copy %2:\aod\sound\*.386         /s
copy %2:\aod\sound\sounddrv.ini  /s
copy %2:\aod\sound\*.dig
copy %2:\aod\sound\departra.hmp  /s
copy %2:\aod\sound\soundply.exe  /s


rem *** copy language specific files ***
godir %1:%4\sim
copy %2:\aod\german\gerfiles\sim\*.*
godir %1:%4
copy %2:\aod\german\config.dat
goto makebatch



:makebatch
godir %1:%4
copy %2:\aod\german\readme /s
rem *** making install batch file ***
rem godir %1:%4
rem echo @echo off>test.bat
rem echo call inst.exe %1 %2 %3 %4 %5 %6 %7 %8 %9>>test.bat


rem *** update resource.cfg file in destination directory ***
godir %1:%4
echo %3 > resource.cfg
echo [FlicPlayer]>> resource.cfg
echo pathFlic=%2:\intro\>> resource.cfg
echo [CDdrive]>> resource.cfg
echo %2:>>resource.cfg

rem *** make intro batch file ***
echo @echo off>intro.bat
echo playflic %2:\intro\intro.dfl -S82 -C15000>>intro.bat

rem *** make single speed drive intro file ***
echo @echo off>single.bat
echo playflic %2:\intro\intro.dfl -S82 -C15000 -q>>single.bat

rem *** copy screen shot stuff ***
godir %1:%4
copy %2:\scrns\gscreen.dbm  screen.dbm
copy %2:\scrns\screen.dpl
copy %2:\scrns\screen.exe



rem *** make executable batch file ***
echo @echo off>demo.bat
rem x echo @if exist vesadrv.bat call vesadrv.bat >> aod.bat
echo call intro.bat>>demo.bat
rem x echo aodcd.exe>>demo.bat
echo cd sim>>demo.bat
echo subsim -P%1:%4\ -D%2>>demo.bat
echo cd..>>demo.bat
echo screen>>demo.bat
echo echo Um die Aces of the Deep Demo noch einmal zu spielen, geben Sie DEMO ein.>>demo.bat


rem ******* end of normal install process **********
end



rem ******* error handling section **********

:NoMinSpace
clear
echo
echo Auf %1: ist nicht genug Speicherplatz vorhanden,
echo um AOD zu installieren!
echo Es sind 3,5 MB Speicherplatz auf der Festplatte
echo erforderlich.
echo
pause     
goto alldone


:CantCreate
alert Kann Verzeichnis %1:%4 nicht anlegen.

rem ****** something bad happened so quit **********
:alldone
end












