home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 6 / 1995-05_Disc_6.iso / install / english / install.scr < prev    next >
Text File  |  1995-01-13  |  3KB  |  158 lines

  1. rem ENGLISH DEMO INSTALL SCRIPT
  2. :start
  3.  
  4. clear
  5. space %1: 3500 NoMinSpace
  6. godir %1:%4 CantCreate
  7.  
  8. IF NOT EXIST *.* goto cherry
  9.  
  10. echo                    /// WARNING \\\
  11. echo
  12. echo     The installation directory already contains files.
  13. echo
  14. echo     In order to ensure a proper install, please remove
  15. echo     all the Dynamix files from this directory.
  16. echo
  17. echo          Do you wish to continue with installation?
  18. echo
  19. echo                          (Y/N)
  20. pick  yn   cherry  alldone
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. :cherry
  28. rem *** create the game directories on the hard disk ***
  29. godir %1:%4\save
  30. godir %1:%4\sound
  31. godir %1:%4\sim
  32. godir %1:%4\sim\save
  33.  
  34.  
  35.  
  36. rem ///////////// minimum install \\\\\\\\\\\\\\\\\\
  37. :minInst
  38. space %1: 3500 NoMinSpace
  39. clear
  40. rem *** copy minimum files for sim and shell ***
  41. :minfiles
  42. godir %1:%4\sim
  43. copy  %2:\sim\subsim.exe
  44. copy  %2:\sim\common.ali
  45. copy  %2:\sim\shades.
  46. copy  %2:\sim\radiolog.dat
  47. copy  %2:\sim\invibutt.def
  48. copy  %2:\sim\shape.lst
  49. copy  %2:\sim\language.txt
  50. copy  %2:\sim\shapes.vol
  51. copy  %2:\sim\*.shd
  52. godir %1:%4\sim\save
  53. copy  %2:\sim\save\*.*  /s
  54.  
  55. goto  copyMinFiles
  56. rem \\\\\\\\\\\\ end minimum install //////////////////
  57.  
  58.  
  59.  
  60.  
  61.  
  62. :copyMinFiles
  63. rem *** copy files to install destination directory ***
  64. godir %1:%4
  65. copy %2:\install\files\*.dat
  66. copy %2:\install\files\playflic.exe
  67. copy %2:\install\sound\soundset.exe
  68. copy %2:\install\sound\soundset.ini
  69.  
  70. rem *** copy files to sound directory ***
  71. godir %1:%4\sound
  72. copy %2:\install\sound\sonarret.raw   /s
  73. copy %2:\install\sound\*.bnk
  74. copy %2:\install\sound\*.386          /s
  75. copy %2:\install\sound\sounddrv.ini   /s
  76. copy %2:\install\sound\*.dig
  77. copy %2:\install\sound\departra.hmp   /s
  78. copy %2:\install\sound\soundply.exe   /s
  79.  
  80. godir %1:%4
  81. copy %2:\install\english\read.me
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89. :makebatch
  90.  
  91. rem *** update resource.cfg file in destination directory ***
  92. godir %1:%4
  93. echo %3 > resource.cfg
  94. echo [FlicPlayer]>> resource.cfg
  95. echo pathFlic=%2:\intro\>> resource.cfg
  96. echo [CDdrive]>> resource.cfg
  97. echo %2:>>resource.cfg
  98.  
  99. rem *** make intro batch file ***
  100. echo @echo off>intro.bat
  101. echo playflic %2:\intro\intro.dfl -S82 -C15000>>intro.bat
  102.  
  103. rem *** make single speed drive intro file ***
  104. echo @echo off>single.bat
  105. echo playflic %2:\intro\intro.dfl -S82 -C15000 -q>>single.bat
  106.  
  107.  
  108. rem *** copy screen shot stuff ***
  109. godir %1:%4
  110. copy %2:\scrns\escreen.dbm  screen.dbm
  111. copy %2:\scrns\screen.dpl
  112. copy %2:\scrns\screen.exe
  113.  
  114.  
  115.  
  116. rem *** make executable batch file ***
  117. echo @echo off>demo.bat
  118. rem x echo @if exist vesadrv.bat call vesadrv.bat >> aod.bat
  119. echo call intro.bat>>demo.bat
  120. rem x echo aodcd.exe>>demo.bat
  121. echo cd sim>>demo.bat
  122. echo subsim -P%1:%4\ -D%2>>demo.bat
  123. echo cd..>>demo.bat
  124. echo screen>>demo.bat
  125. echo echo to run the Aces of the Deep demo again type DEMO.>>demo.bat
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132. rem ******* end of normal install process **********
  133. end
  134.  
  135.  
  136.  
  137.    rem ******* error handling section **********
  138.  
  139. :NoMinSpace
  140. clear
  141. echo
  142. echo There is not enough space on %1: to install AOD!
  143. echo at least 3.5 megabytes of disk space are necessary.
  144. echo
  145. pause
  146. goto alldone
  147.  
  148.  
  149. :CantCreate
  150. alert Unable to create directory %1:%4
  151.  
  152. rem ****** something bad happened so quit **********
  153. :alldone
  154. end
  155.  
  156.  
  157.  
  158.