home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1997 #4 / amigaacscoverdisc1997-041997.iso / games / installers / zinstall / install_zeewolf next >
Text File  |  1997-05-18  |  5KB  |  217 lines

  1. ;
  2. ;$VER: Zeewolf HD Installer script v2.00 (c) 1996-1997 John Girvin
  3. ;
  4.  
  5. (welcome "Welcome to the Zeewolf Hard Drive Installer")
  6. (set @app-name "Zeewolf HD")
  7. (set #ZROOTDIR "DH0:")
  8. (set #ZDESTDIR #ZDESTDIR)
  9. (set #ZVERSION 0)
  10.  
  11. (set #ZSRCDRIVE 0)
  12. (set #ZUSEGUI 0)
  13. (set #ZDEFTRAINERS 0)
  14. (set #ZSTARTMISSION 0)
  15.  
  16. (if
  17.     (<> @user-level 2)
  18.     (abort "You must select 'Expert' user level")
  19. )
  20.  
  21. (message "\n\nWelcome to the Zeewolf Hard Drive Installer\n"
  22.          "(c) 1996-1997 John Girvin\n\n"
  23.          "Please read the documentation thoroughly before"
  24.          " attempting to use this installer!\n\n"
  25.          "This is version 2.00\n\n"
  26.          "Click 'Proceed' to begin."
  27. )
  28.  
  29. (set #ZROOTDIR
  30.     (askdir
  31.         (prompt "Where would you like Zeewolf installed?\n"
  32.                 "(a new drawer called 'Zeewolf' will be created here)"
  33.         )
  34.         (help @askdir-help)
  35.         (default "DH0:")
  36.     )
  37. )
  38. (set #ZDESTDIR (tackon #ZROOTDIR "Zeewolf/"))
  39. (set @default-dest #ZDESTDIR)
  40. (set #ZDATFILE (tackon #ZDESTDIR "Zeewolf.dat"))
  41.  
  42. (set #ZSRCDRIVE
  43.     (askchoice
  44.         (prompt "Which drive do you wish to install from?")
  45.         (help @askchoice-help)
  46.         (choices "DF0:" "DF1:" "DF2:" "DF3:")
  47.         (default #ZSRCDRIVE)
  48.     )
  49. )
  50.  
  51. (set #ZUSEGUI
  52.     (askchoice
  53.         (prompt "Do you want the cheat GUI to appear every time you load Zeewolf_HD?\n"
  54.                 "(this may be changed later by editing the tooltypes of Zeewolf_HD)"
  55.         )
  56.         (help @askchoice-help)
  57.         (choices "Yes" "No")
  58.         (default #ZUSEGUI)
  59.     )
  60. )
  61.  
  62. (set #ZDEFTRAINERS
  63.     (askoptions
  64.         (prompt "Please select the default trainers to use:\n"
  65.                 "(these may be changed later by either\n"
  66.                 "editing the tooltypes of Zeewolf_HD\n"
  67.                 "or using the cheat GUI)"
  68.         )
  69.         (help @askoptions-help)
  70.         (choices "Infinite lives"    "Infinite armor"    "Infinite cannon"
  71.                  "Infinite rockets" "Infinite AAMs"        "Infinite fuel"
  72.         )
  73.         (default #ZDEFTRAINERS)
  74.     )
  75. )
  76.  
  77. (set #ZSTARTMISSION
  78.     (askchoice
  79.         (prompt "Please select the default starting mission to use:\n"
  80.                 "(this may be changed later by either\n"
  81.                 "editing the tooltypes of Zeewolf_HD\n"
  82.                 "or using the cheat GUI)"
  83.         )
  84.         (help @askchoice-help)
  85.         (choices "Mission 1" "Mission 5" "Mission 9" "Mission 13"
  86.                  "Mission 17" "Mission 21" "Mission 25" "Mission 29"
  87.         )
  88.         (default #ZSTARTMISSION)
  89.     )
  90. )
  91.  
  92. (makedir #ZDESTDIR
  93.     (prompt "I will now create the directory '" #ZDESTDIR "'")
  94.     (help @makedir-help)
  95.     (infos)
  96.     (confirm)
  97. )
  98.  
  99. (message "\n\n\nPlease insert your Zeewolf game disk in drive DF"
  100.            #ZSRCDRIVE
  101.          ":\n\n"
  102.          "Click 'Proceed' when disk has been inserted and"
  103.          " disk activity has stopped."
  104. )
  105.  
  106. (working "Creating disk image in '" #ZDATFILE "'")
  107. (set #ZVERSION  (run (cat "ZMakeDat " #ZSRCDRIVE " " #ZDATFILE)))
  108.  
  109. (if (OR (> #ZVERSION 3) (< #ZVERSION 1))
  110.     (abort (cat "Could not create disk image!\n\nError: " #ZVERSION))
  111. )
  112.  
  113. (set #ZBOOTNAME (cat "ZBoot" #ZVERSION))
  114.  
  115. (copyfiles
  116.     (prompt "Copying HD drawer icon")
  117.     (help @copyfiles-help)
  118.     (source "Zeewolf_icon")
  119.     (newname "Zeewolf.info")
  120.     (dest #ZROOTDIR)
  121.     (nogauge)
  122.     (optional fail force)
  123. )
  124.  
  125. (copyfiles
  126.     (prompt "Copying trainer program")
  127.     (help @copyfiles-help)
  128.     (source "Zeewolf_HD")
  129.     (dest #ZDESTDIR)
  130.     (nogauge)
  131.     (noposition)
  132.     (optional fail force)
  133. )
  134.  
  135. (copyfiles
  136.     (prompt "Copying trainer program icon")
  137.     (help @copyfiles-help)
  138.     (source "Zeewolf_HD_icon")
  139.     (newname "Zeewolf_HD.info")
  140.     (dest #ZDESTDIR)
  141.     (nogauge)
  142.     (optional fail force)
  143. )
  144.  
  145. (tooltype
  146.     (prompt "Setting trainer program icon tooltypes")
  147.     (dest (cat #ZDESTDIR "Zeewolf_HD"))
  148.     (settooltype "START_MISSION" (cat (+ 1 (* #ZSTARTMISSION 4))))
  149. )
  150.  
  151. (if (= #ZUSEGUI 1)
  152.     (tooltype
  153.         (prompt "Setting trainer program icon tooltypes")
  154.         (dest (cat #ZDESTDIR "Zeewolf_HD"))
  155.         (settooltype "NOGUI" "")
  156.     )
  157. )
  158.  
  159. (if (<> 0 (IN #ZDEFTRAINERS 0))
  160.     (tooltype
  161.         (prompt "Setting trainer program icon tooltypes")
  162.         (dest (cat #ZDESTDIR "Zeewolf_HD"))
  163.         (settooltype "INF_LIVES" "")
  164.     )
  165. )
  166.  
  167. (if (<> 0 (IN #ZDEFTRAINERS 1))
  168.     (tooltype
  169.         (prompt "Setting trainer program icon tooltypes")
  170.         (dest (cat #ZDESTDIR "Zeewolf_HD"))
  171.         (settooltype "INF_ARMOR" "")
  172.     )
  173. )
  174.  
  175. (if (<> 0 (IN #ZDEFTRAINERS 2))
  176.     (tooltype
  177.         (prompt "Setting trainer program icon tooltypes")
  178.         (dest (cat #ZDESTDIR "Zeewolf_HD"))
  179.         (settooltype "INF_CANNON" "")
  180.     )
  181. )
  182.  
  183. (if (<> 0 (IN #ZDEFTRAINERS 3))
  184.     (tooltype
  185.         (prompt "Setting trainer program icon tooltypes")
  186.         (dest (cat #ZDESTDIR "Zeewolf_HD"))
  187.         (settooltype "INF_ROCKET" "")
  188.     )
  189. )
  190.  
  191. (if (<> 0 (IN #ZDEFTRAINERS 4))
  192.     (tooltype
  193.         (prompt "Setting trainer program icon tooltypes")
  194.         (dest (cat #ZDESTDIR "Zeewolf_HD"))
  195.         (settooltype "INF_AAM" "")
  196.     )
  197. )
  198.  
  199. (if (<> 0 (IN #ZDEFTRAINERS 5))
  200.     (tooltype
  201.         (prompt "Setting trainer program icon tooltypes")
  202.         (dest (cat #ZDESTDIR "Zeewolf_HD"))
  203.         (settooltype "INF_FUEL" "")
  204.     )
  205. )
  206.  
  207. (copyfiles
  208.     (prompt (cat "Copying HD loader version " #ZVERSION))
  209.     (help @copyfiles-help)
  210.     (source #ZBOOTNAME)
  211.     (newname "ZBoot")
  212.     (dest #ZDESTDIR)
  213.     (nogauge)
  214.     (noposition)
  215.     (optional fail force)
  216. )
  217.