home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1997 #4 / amigaacscoverdisc1997-041997.iso / games / installers / team17 / superfrog / install-superfrog < prev    next >
Text File  |  1997-06-23  |  2KB  |  97 lines

  1.  
  2. ;----------------------------
  3.  
  4. (if (exists "Games:" (noreq) )
  5.     (set @default-dest "Games:")
  6.     (if (exists "SYS:Games" (noreq) )
  7.         (set @default-dest "SYS:Games")
  8.         (if (exists "Work:Games" (noreq) )
  9.             (set @default-dest "Work:Games")
  10.             (if (exists "JEUX:" (noreq) )
  11.                (set @default-dest "JEUX:")
  12.                (set @default-dest "SYS:")
  13.             )
  14.         )
  15.     )
  16. )
  17.  
  18.  
  19. (set @default-dest
  20. (askdir
  21.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  22.     (help @askdir-help)
  23.     (default @default-dest)
  24.     (disk)
  25. )
  26. )
  27.  
  28. (set #dest (tackon @default-dest @app-name))
  29.  
  30. (set #CI_unit
  31.     (askchoice
  32.         (prompt "From which disk unit do you want\nto install the game")
  33.         (help    @askoptions-help)
  34.         (choices
  35.            "DF0:"
  36.            "DF1:"
  37.            "DF2:"
  38.            "DF3:"
  39.         )
  40.     )
  41. )
  42.  
  43. (set #CI_drive ("DF%ld:" #CI_unit))
  44.  
  45. (makedir #dest
  46.     (help @makedir-help)
  47.     (infos)
  48. )
  49.  
  50. ;----------------------------
  51.  
  52. (copyfiles
  53.     (help @copyfiles-help)
  54.     (source "SuperfrogHD")
  55.     (dest #dest)
  56.     (infos)
  57. )
  58.  
  59. (copyfiles
  60.     (help @copyfiles-help)
  61.     (source "IntroHD")
  62.     (dest #dest)
  63.     (infos)
  64. )
  65. (copyfiles
  66.     (help @copyfiles-help)
  67.     (source "sfroghd.readme")
  68.     (dest #dest)
  69.     (infos)
  70. )
  71.  
  72.  
  73. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  74.     (if
  75.         (= 0 (run ("rob2file %ld \"%s/sfrog.d1\" 2 159 12389A OFFSET >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  76.         ("")
  77.         (abort "\"rob2file\" must be in your PATH !")
  78.     )
  79.  
  80. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  81.     (if
  82.         (= 0 (run ("rob2file %ld \"%s/sfrog.d2\" 0 159 12389A >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  83.         ("")
  84.         (abort "\"rob2file\" must be in your PATH !")
  85.     )
  86.  
  87. (message ("\nInsert %s disk 3 into drive %s !" @app-name #CI_drive))
  88.     (if
  89.         (= 0 (run ("rob2file %ld \"%s/sfrog.d3\" 2 159 12389A OFFSET >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  90.         ("")
  91.         (abort "\"rob2file\" must be in your PATH !")
  92.     )
  93.  
  94.  
  95. (exit)
  96.  
  97.