home *** CD-ROM | disk | FTP | other *** search
/ The Amiga Game Guide / AmigaGameGuide_CD.iso / Amiga / Game-Installer / JST-Installer / ChaosHDPack / Chaos-Install < prev    next >
Encoding:
Text File  |  1978-01-01  |  4.3 KB  |  218 lines

  1.  
  2.  
  3.  
  4.  
  5. ;----------------------------
  6.  
  7. ;try to figure out a place where the user usually installs his games
  8. (if (exists "Games:" (noreq) )
  9.     (set @default-dest "Games:")
  10.     (if (exists "SYS:Games" (noreq) )
  11.         (set @default-dest "SYS:Games")
  12.         (if (exists "Work:Games" (noreq) )
  13.             (set @default-dest "Work:Games")
  14.             (if (exists "JEUX:" (noreq) )
  15.                (set @default-dest "JEUX:")
  16.                (set @default-dest "SYS:")
  17.             )
  18.         )
  19.     )
  20. )
  21.  
  22. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch) or on my site\n\nhttp://www.ensica.fr/~jffabre/patches.html")
  23.  
  24. (set #game_ver
  25.     (askchoice
  26.         (prompt "Which version of Chaos Engine\ndo you want to install")
  27.         (help    @askoptions-help)
  28.         (choices
  29.            "Chaos Engine II ECS"
  30.            "Chaos Engine II AGA"
  31.            "Chaos Engine I  ECS"
  32.            "Chaos Engine I  AGA"
  33.         )
  34.     )
  35. )
  36.  
  37. (set #CI_unit
  38.     (askchoice
  39.         (prompt "From which disk unit do you want\nto install the game")
  40.         (help    @askoptions-help)
  41.         (choices
  42.            "DF0:"
  43.            "DF1:"
  44.            "DF2:"
  45.            "DF3:"
  46.         )
  47.     )
  48. )
  49.  
  50. (set #CI_drive ("DF%ld:" #CI_unit))
  51.  
  52.  
  53. (if (= #game_ver 0)
  54.     (set #app-name "ChaosEngine2-ECS")
  55.     (set #loader-name "Chaos2HD")
  56. )
  57.  
  58. (if (= #game_ver 1)
  59.     (set #app-name "ChaosEngine2-AA")
  60.     (set #loader-name "Chaos2HD")
  61. )
  62.  
  63. (if (= #game_ver 2)
  64.     (set #app-name "ChaosEngineECS")
  65.     (set #loader-name "ChaosHD")
  66. )
  67.  
  68. (if (= #game_ver 3)
  69.     (set #app-name "ChaosEngineAGA")
  70.     (set #loader-name "ChaosAGAHD")
  71. )
  72.  
  73. (set default-dest
  74. (askdir
  75.     (prompt ("Where should I install the game ?\nA drawer \"%s\" will automatically created." #app-name))
  76.     (help @askdir-help)
  77.     (default @default-dest)
  78.     (disk)
  79. )
  80. )
  81.  
  82. (set @default-dest (tackon default-dest #app-name))
  83.  
  84.  
  85. (makedir @default-dest
  86.     (help @makedir-help)
  87.     (infos)
  88. )
  89.  
  90. ;----------------------------
  91.  
  92.  
  93. (copyfiles
  94.     (help @copyfiles-help)
  95.     (source "chaos2hd.readme")
  96.     (dest @default-dest)
  97.     (infos)
  98. )
  99.  
  100.  
  101. (if (< #game_ver 2)
  102. (
  103. (copyfiles
  104.     (help @copyfiles-help)
  105.     (source "Chaos2HD")
  106.     (dest @default-dest)
  107.     (infos)
  108. )
  109.  
  110.  
  111. (message ("\nInsert %s disk 1 into drive %s !" #app-name #CI_drive))
  112.     (if
  113.         (= 0 (run ("disk2file %ld \"%s/chaos2.d1\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit @default-dest )))
  114.         ("")
  115.         (abort "\"disk2file\" must be in your PATH !")
  116.     )
  117.  
  118. (message ("\nInsert %s disk 2 into drive %s !" #app-name #CI_drive))
  119.     (if
  120.         (= 0 (run ("disk2file %ld \"%s/chaos2.d2\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit @default-dest )))
  121.         ("")
  122.         (abort "\"disk2file\" must be in your PATH !")
  123.     )
  124.  
  125. (message ("\nInsert %s disk 3 into drive %s !" #app-name #CI_drive))
  126.     (if
  127.         (= 0 (run ("disk2file %ld \"%s/chaos2.d3\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit @default-dest )))
  128.         ("")
  129.         (abort "\"disk2file\" must be in your PATH !")
  130.     )
  131.  
  132.  
  133. (exit)
  134.  
  135. )
  136. )
  137.  
  138. (if (= #game_ver 2)
  139. (
  140. (copyfiles
  141.     (help @copyfiles-help)
  142.     (source "ChaosHD")
  143.     (dest @default-dest)
  144.     (infos)
  145. )
  146.  
  147. (copyfiles
  148.     (help @copyfiles-help)
  149.     (source "ChaosHD.readme")
  150.     (dest @default-dest)
  151.     (infos)
  152. )
  153.  
  154.  
  155. (message ("\nInsert %s disk 1 into drive %s !" #app-name #CI_drive))
  156.     (if
  157.         (= 0 (run ("disk2file %ld \"%s/chaos.d1\" >con:///1000//CLOSE/WAIT" #CI_unit @default-dest )))
  158.         ("")
  159.         (abort "\"disk2file\" must be in your PATH !")
  160.     )
  161.  
  162. (message ("\nInsert %s disk 2 into drive %s !" #app-name #CI_drive))
  163.     (if
  164.         (= 0 (run ("disk2file %ld \"%s/chaos.d2\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit @default-dest )))
  165.         ("")
  166.         (abort "\"disk2file\" must be in your PATH !")
  167.     )
  168.  
  169. (exit)
  170. )
  171. )
  172.  
  173. (if (= #game_ver 3)
  174. (
  175. (copyfiles
  176.     (help @copyfiles-help)
  177.     (source "ChaosAGA_HD")
  178.     (dest @default-dest)
  179.     (infos)
  180. )
  181.  
  182. (copyfiles
  183.     (help @copyfiles-help)
  184.     (source "ChaosAGA_HD.readme")
  185.     (dest @default-dest)
  186.     (infos)
  187. )
  188.  
  189. (message ("\nInsert %s disk 1 into drive %s !" #app-name #CI_drive))
  190.  
  191.     (if
  192.         (= 0 (run ("chaosboot %ld \"%s/ChaosAGA.b1\"" #CI_unit @default-dest )))
  193.         ("")
  194.         (abort "\"chaosboot\" must be in your PATH !")
  195.     )
  196.  
  197.  
  198.     (if
  199.         (= 0 (run ("rob2file %ld \"%s/ChaosAGA.d1\" 15 149 F674AE7A >con:///1000//CLOSE/WAIT" #CI_unit @default-dest )))
  200.         ("")
  201.         (abort "\"rob2file\" must be in your PATH !")
  202.     )
  203.  
  204.  
  205. (message ("\nInsert %s disk 2 into drive %s !" #app-name #CI_drive))
  206.     (if
  207.         (= 0 (run ("rob2file %ld \"%s/ChaosAGA.d2\" 15 149 F674AE7A >con:///1000//CLOSE/WAIT" #CI_unit @default-dest )))
  208.         ("")
  209.         (abort "\"rob2file\" must be in your PATH !")
  210.     )
  211.  
  212. )
  213. )
  214.  
  215.  
  216. (exit)
  217.  
  218.