home *** CD-ROM | disk | FTP | other *** search
/ PC/CD Gamer UK 42 / PCGAMER42.bin / games / settler2.mis / install.scr < prev    next >
Text File  |  1997-01-23  |  4KB  |  205 lines

  1. // Install script for the Settlers II Demo V2
  2. // (c) 1995-7 Blue Byte Software GmbH
  3.  
  4.  
  5. // Set language
  6. SET_LANGUAGE 2
  7.  
  8. // Load background image
  9. LOAD_BACKGROUND "gfx\pics\install.lbm"
  10.  
  11.  
  12. // Install main menu
  13. MENU_START
  14. MENU_ENTRY "Settlers II Demo Installation"
  15. MENU_ENTRY "Install Settlers II" InstallGame
  16. MENU_ENTRY "Quit program" ExitInstallFromInstall
  17. MENU_END
  18.  
  19.  
  20. // Install the game
  21. :InstallGame
  22.  
  23. // Select a target drive
  24. SELECT_TARGET_DRIVE 28000 ExitInstallFromInstall
  25.  
  26. // Select target path
  27. SELECT_TARGET_PATH BLUEBYTE\SETTLER2.DEM
  28.  
  29. // Inform the user that installation has started
  30. PRINT "Preparing installation"
  31.  
  32. // Change to target directory
  33. CD_TARGET
  34.  
  35. // Delete everything that may already be here
  36. DELETE *.*
  37. DELETE DRIVERS
  38. DELETE DATA\MASKS
  39. DELETE DATA\BOBS
  40. DELETE DATA\IO
  41. DELETE DATA\TXT
  42. DELETE DATA\ANIMDAT
  43. DELETE DATA\SOUNDDAT\SAM
  44. DELETE DATA\SOUNDDAT
  45. DELETE DATA\TEXTURES
  46. DELETE DATA\MBOB
  47. DELETE DATA\CBOB
  48. DELETE DATA\TXT2
  49. DELETE DATA\TXT3
  50. DELETE DATA\MISSIONS
  51. DELETE DATA\MAPS
  52. DELETE DATA\MAPS3
  53. DELETE DATA\ONLINE
  54. DELETE DATA
  55. DELETE GFX\PALETTE
  56. DELETE GFX\PICS
  57. DELETE GFX\TEXTURES
  58. DELETE GFX
  59. DELETE SAVE
  60. DELETE WORLDS
  61.  
  62. // Create directories
  63. MD DRIVERS
  64. MD DATA
  65. MD DATA\MASKS
  66. MD DATA\BOBS
  67. MD DATA\IO
  68. MD DATA\TXT
  69. MD DATA\ANIMDAT
  70. MD DATA\SOUNDDAT
  71. MD DATA\SOUNDDAT\SNG
  72. MD DATA\TEXTURES
  73. MD DATA\MBOB
  74. MD DATA\CBOB
  75. MD DATA\TXT2
  76. MD DATA\TXT3
  77. MD DATA\MISSIONS
  78. MD DATA\MAPS
  79. MD DATA\MAPS3
  80. MD DATA\ONLINE
  81. MD GFX
  82. MD GFX\PALETTE
  83. MD GFX\PICS
  84. MD GFX\TEXTURES
  85. MD SAVE
  86. MD WORLDS
  87.  
  88. // Change to source directory
  89. CD_SOURCE
  90.  
  91. // Inform the user that installation has started
  92. PRINT "Installing Settlers II"
  93.  
  94. // Copy AIL drivers
  95. INSTALL DRIVERS\*.* DRIVERS\*.*
  96.  
  97. // Copy stuff
  98. INSTALL SETUP.EXE         SETUP.EXE
  99. INSTALL DOS4GW.EXE        DOS4GW.EXE
  100. INSTALL README.TXT        README.TXT
  101.  
  102. INSTALL ROOT\S2.exe       S2.exe
  103. INSTALL ROOT\S2EDIT.exe   S2EDIT.exe
  104. INSTALL ROOT\START.BAT    START.BAT
  105. INSTALL ROOT\SETTLER2.BAT SETTLER2.BAT
  106. INSTALL ROOT\NOSOUND.BAT  NOSOUND.BAT
  107. INSTALL ROOT\INSTALL.SCR  INSTALL.SCR
  108.  
  109. INSTALL DATA\*.*          DATA\*.*
  110. INSTALL DATA\MASKS\*.*    DATA\MASKS\*.*
  111. INSTALL DATA\BOBS\*.*     DATA\BOBS\*.*
  112. INSTALL DATA\IO\*.*       DATA\IO\*.*
  113. INSTALL DATA\TXT\*.*      DATA\TXT\*.*
  114. INSTALL DATA\ANIMDAT\*.*  DATA\ANIMDAT\*.*
  115. INSTALL DATA\SOUNDDAT\*.* DATA\SOUNDDAT\*.*
  116. INSTALL DATA\SOUNDDAT\SNG\*.* DATA\SOUNDDAT\SNG\*.*
  117. INSTALL DATA\TEXTURES\*.* DATA\TEXTURES\*.*
  118. INSTALL DATA\MBOB\*.*     DATA\MBOB\*.*
  119. INSTALL DATA\CBOB\*.*     DATA\CBOB\*.*
  120. INSTALL DATA\TXT2\*.*     DATA\TXT2\*.*
  121. INSTALL DATA\TXT3\*.*     DATA\TXT3\*.*
  122. INSTALL DATA\MISSIONS\*.* DATA\MISSIONS\*.*
  123. INSTALL DATA\MAPS\*.*     DATA\MAPS\*.*
  124. INSTALL DATA\MAPS3\*.*    DATA\MAPS3\*.*
  125. INSTALL DATA\ONLINE\*.*   DATA\ONLINE\*.*
  126. INSTALL GFX\*.*           GFX\*.*
  127. INSTALL GFX\PALETTE\*.*   GFX\PALETTE\*.*
  128. INSTALL GFX\PICS\*.*      GFX\PICS\*.*
  129. INSTALL GFX\TEXTURES\*.*  GFX\TEXTURES\*.*
  130. INSTALL SAVE\*.*          SAVE\*.*
  131. INSTALL WORLDS\*.*        WORLDS\*.*
  132.  
  133. CD_TARGET
  134.  
  135. // Create and update setup file
  136. CREATE SETUP.INI
  137. UPDATE_INI
  138.  
  139. // Inform the user that installation has been completed successfully
  140. INFO "Settlers II demo has been installed successfully"
  141.  
  142.  
  143.  
  144. // Install main menu
  145. :InstallMainMenu
  146.  
  147. MENU_START
  148. MENU_ENTRY "Settlers II Mission Disk"
  149. MENU_ENTRY "Setup soundcard" SetupSound
  150. MENU_ENTRY "Additional information" ReadDoc
  151. MENU_ENTRY "Change editor-screen-resolution" ChangeScreen
  152. MENU_ENTRY "Exit" ExitInstallFromInstall
  153. MENU_END
  154.  
  155. :SetupSound
  156.  
  157. CD DRIVERS
  158. EXECUTE_OWN_SCREEN SETSOUND.EXE
  159. CD ..
  160. GOTO InstallMainMenu
  161.  
  162. // change resolution
  163. :ChangeScreen
  164.  
  165. MENU_START
  166.  
  167. MENU_ENTRY "Screen resolution"
  168. MENU_ENTRY "640x480" ChangeTo640
  169. MENU_ENTRY "800x600" ChangeTo800
  170. MENU_ENTRY "1024x768" ChangeTo1024
  171.  
  172. MENU_END
  173.  
  174. // resolutions
  175. :ChangeTo640
  176.  
  177. WRITE_INI_ENTRY EDIT_SCREEN 0
  178.  
  179. GOTO InstallMainMenu
  180.  
  181. :ChangeTo800
  182.  
  183. WRITE_INI_ENTRY EDIT_SCREEN 1
  184.  
  185. GOTO InstallMainMenu
  186.  
  187. :ChangeTo1024
  188.  
  189. WRITE_INI_ENTRY EDIT_SCREEN 2
  190.  
  191. GOTO InstallMainMenu
  192.  
  193. :ReadDoc
  194. TEXT README.TXT
  195. GOTO InstallMainMenu
  196.  
  197. :ExitInstallFromInstall
  198. END
  199.  
  200.  
  201.  
  202. :ExitInstallFromInstall
  203. END
  204.  
  205.