home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1997 #5 / amigaacscoverdisc1997-051997.i / games / installers / sotb3 / install-beastiii < prev    next >
Text File  |  1997-07-02  |  2KB  |  87 lines

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