home *** CD-ROM | disk | FTP | other *** search
/ The Amiga Game Guide / AmigaGameGuide_CD.iso / Amiga / Game-Installer / WHD_Installers / Games_C-D / CreaturesHD / Install-Game < prev    next >
Text File  |  1977-12-31  |  3KB  |  120 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3. (set #readme "creatr")            ; %shd.readme
  4. (set #diskname "disk.1")        ; %s.d
  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 requires either JST or WHDLoad (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST and WHDLoad are available from aminet (game/patch)")
  23.  
  24. (set @default-dest
  25. (askdir
  26.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  27.     (help @askdir-help)
  28.     (default @default-dest)
  29.     (disk)
  30. )
  31. )
  32. (set #dest (tackon @default-dest @app-name))
  33. (set #CI_unit
  34.     (askchoice
  35.         (prompt "From which disk unit do you want\nto install the game")
  36.         (help    @askoptions-help)
  37.         (choices
  38.            "DF0:"
  39.            "DF1:"
  40.            "DF2:"
  41.            "DF3:"
  42.         )
  43.     )
  44. )
  45.  
  46. (set #CI_drive ("DF%ld:" #CI_unit))
  47.  
  48. (set #Game_Ver
  49.     (askchoice
  50.         (prompt "Which version of the loader do you wish to install")
  51.         (help    @askoptions-help)
  52.         (choices
  53.            "JST      (Does not work on 060 as of yet)"
  54.            "WHDLoad  (Works fine on all)"
  55.         )
  56.     )
  57. )
  58.  
  59. (makedir #dest
  60.     (help @makedir-help)
  61.     (infos)
  62. )
  63.  
  64. ;----------------------------
  65. (if (= #Game_Ver 0)
  66. (copyfiles
  67.   (help @copyfiles-help)
  68.   (source ("JHD.inf"))
  69.   (newname ("%sHD.info" @app-name ))
  70.   (dest #dest)
  71. ))
  72. (if (= #Game_Ver 0)
  73. (copyfiles
  74.   (help @copyfiles-help)
  75.   (source ("HD"))
  76.   (newname ("%sHD" @app-name ))
  77.   (dest #dest)
  78. ))
  79. (if (= #Game_Ver 1)
  80. (copyfiles
  81.   (help @copyfiles-help)
  82.   (source ("WHD.inf"))
  83.   (newname ("%sHD.info" @app-name ))
  84.   (dest #dest)
  85. ))
  86.  
  87. (if (= #Game_Ver 1)
  88. (copyfiles
  89.   (help @copyfiles-help)
  90.   (source ("HD.slave" ))
  91.   (newname ("%sHD.slave" @app-name ))
  92.   (dest #dest)
  93. ))
  94. (copyfiles
  95.   (help @copyfiles-help)
  96.   (source ("%shd.readme" #readme))
  97.   (dest #dest)
  98. )
  99. (copyfiles
  100.   (help @copyfiles-help)
  101.   (source ("%shd.readme.info" #readme))
  102.   (dest #dest)
  103. )
  104. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  105.     (if
  106.         (= 0 (run ("wjs2file %ld \"%s/disk.1\" 2 145 >con:0/0/450/200//CLOSE/WAIT" #CI_unit #dest #diskname)))
  107.         ("")
  108.         (abort "\"wjs2file\" must be in your PATH !")
  109.     )
  110. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  111.     (if
  112.         (= 0 (run ("wjs2file %ld \"%s/disk.2\" 0 124 >con:0/0/450/200//CLOSE/WAIT" #CI_unit #dest)))
  113.         ("")
  114.         (abort "\"wjs2file\" must be in your PATH !")
  115.     )
  116.  
  117.  
  118. (exit)
  119.  
  120.