home *** CD-ROM | disk | FTP | other *** search
/ The Amiga Game Guide / AmigaGameGuide_CD.iso / Amiga / Game-Installer / JST-Installer / SOTB3 / Install-BeastIII next >
Text File  |  1977-12-31  |  2KB  |  90 lines

  1. (set gamedir "SOTB3")
  2.  
  3. ;----------------------------
  4.  
  5. ;try to figure out a place where the user usually installs his games
  6. (if (exists "Games:" (noreq) )
  7.     (set default-dest "Games:")
  8.     (if (exists "SYS:Games" (noreq) )
  9.         (set default-dest "SYS:Games")
  10.         (if (exists "Work:Games" (noreq) )
  11.             (set default-dest "Work:Games")
  12.             (if (exists "JEUX:" (noreq) )
  13.                (set default-dest "JEUX:")
  14.                (set default-dest "SYS:")
  15.             )
  16.         )
  17.     )
  18. )
  19.  
  20.  
  21. (set default-dest
  22. (askdir
  23.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name gamedir))
  24.     (help @askdir-help)
  25.     (default default-dest)
  26.     (disk)
  27. )
  28. )
  29.  
  30. (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")
  31.  
  32. (set @default-dest (tackon default-dest gamedir))
  33.  
  34.  
  35. (set #CI_unit
  36.     (askchoice
  37.         (prompt "From which disk unit do you want\nto install the game")
  38.         (help    @askoptions-help)
  39.         (choices
  40.            "DF0:"
  41.            "DF1:"
  42.            "DF2:"
  43.            "DF3:"
  44.         )
  45.     )
  46. )
  47.  
  48. (set #CI_drive ("DF%ld:" #CI_unit))
  49.  
  50.  
  51.  
  52. (makedir @default-dest
  53.     (help @makedir-help)
  54.     (infos)
  55. )
  56.  
  57. ;----------------------------
  58.  
  59. (copyfiles
  60.     (help @copyfiles-help)
  61.     (source "sotb3hd")
  62.     (dest @default-dest)
  63.     (infos)
  64. )
  65.  
  66. (copyfiles
  67.     (help @copyfiles-help)
  68.     (source "sotb3hd.readme")
  69.     (dest @default-dest)
  70.     (infos)
  71. )
  72.  
  73. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  74.     (if
  75.         (= 0 (run ("rippsyfiles %ld %s 66303100 >CON:0/0/350/200/Ripping/CLOSE/WAIT" #CI_unit @default-dest)))
  76.         ("")
  77.         (abort "\"rippsyfiles\" must be in your path.\n\nIt can be found in the JST package")
  78.     )
  79.  
  80. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  81.     (if
  82.         (= 0 (run ("rippsyfiles %ld %s 66343000 >CON:0/0/350/200/Ripping/CLOSE/WAIT" #CI_unit @default-dest)))
  83.         ("")
  84.         (abort "\"rippsyfiles\" must be in your path !")
  85.     )
  86.  
  87.  
  88. (exit)
  89.  
  90.