rem FRENCH DEMO INSTALL SCRIPT
:start

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

IF NOT EXIST *.* goto cherry



echo                        ///   ATTENTION  \\\
echo
echo    Le r‚pertoire d'installation contient d‚j… des
echo    fichiers.
echo
echo    Pour permettre l'installation, retirez tous les
echo    fichiers Dynamix du r‚pertoire.
echo
echo    D‚sirez-vous continuer l'installation?
echo
echo                             (O/N)
pick  on   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
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\french\frnfiles\sim\*.*






:makebatch
godir %1:%4
copy %2:\aod\french\read.me /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\fscreen.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 Pour relancer la d‚mo d'Aces of the Deep, tapez DEMO.>>demo.bat


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



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

:NoMinSpace
clear
echo
echo L'espace sur %1: est insuffisant pour installer AOD!
echo Vous avez besoin de 3.5 Mo d'espace disponible.
echo
pause
goto alldone


:CantCreate
alert    Impossible de cr‚er le r‚pertoire %1:%4

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



