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

  1.  
  2. ;----------------------------
  3. ;try to figure out a place where the user usually installs his games
  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.  
  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. (set #CI_unit
  32.     (askchoice
  33.         (prompt "From which disk unit do you want\nto install the game")
  34.         (help    @askoptions-help)
  35.         (choices
  36.            "DF0:"
  37.            "DF1:"
  38.            "DF2:"
  39.            "DF3:"
  40.         )
  41.     )
  42. )
  43.  
  44. (set #CI_drive ("DF%ld:" #CI_unit))
  45.  
  46. (makedir #dest
  47.     (help @makedir-help)
  48.     (infos)
  49. )
  50.  
  51.  
  52.  
  53. ;----------------------------
  54.  
  55. (copyfiles
  56.     (help @copyfiles-help)
  57.     (source "ZoolHD")
  58.     (dest #dest)
  59.     (infos)
  60. )
  61.  
  62. (copyfiles
  63.     (help @copyfiles-help)
  64.     (source "ZoolI.cheat")
  65.     (dest #dest)
  66.     (infos)
  67. )
  68.  
  69. (copyfiles
  70.     (help @copyfiles-help)
  71.     (source "zoolhd.readme")
  72.     (dest #dest)
  73.     (infos)
  74. )
  75.  
  76. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  77.     (if
  78.         (= 0 (run ("grem2file %ld \"%s\" 2 158 OFFSET >con:///1000//CLOSE/WAIT" #CI_unit (tackon #dest "Zool.d1") )))
  79.         ("")
  80.         (abort "\"grem2file\" must be in your PATH !")
  81.     )
  82.  
  83. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  84.     (if
  85.         (= 0 (run ("grem2file %ld \"%s\" 2 158 OFFSET >con:///1000//CLOSE/WAIT" #CI_unit (tackon #dest "Zool.d2") )))
  86.         ("")
  87.         (abort "\"grem2file\" must be in your PATH !")
  88.     )
  89.  
  90.  
  91. (exit)
  92.  
  93.