home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1997 #4 / amigaacscoverdisc1997-041997.iso / games / installers / fatmanaga / install-fatman < prev    next >
Text File  |  1997-06-18  |  2KB  |  101 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. (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.  
  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. (makedir #dest
  49.     (help @makedir-help)
  50.     (infos)
  51. )
  52.  
  53. ;----------------------------
  54.  
  55. (copyfiles
  56.     (help @copyfiles-help)
  57.     (source "FatmanHD")
  58.     (dest #dest)
  59.     (infos)
  60. )
  61.  
  62.  
  63. (copyfiles
  64.     (help @copyfiles-help)
  65.     (source "fatmanhd.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 ("disk2file %ld \"%s/fatman.d1\" >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  73.         ("")
  74.         (abort "\"disk2file\" 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 ("disk2file %ld \"%s/fatman.d2\" >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  80.         ("")
  81.         (abort "\"disk2file\" must be in your PATH !")
  82.     )
  83.  
  84. (message ("\nInsert %s disk 3 into drive %s !" @app-name #CI_drive))
  85.     (if
  86.         (= 0 (run ("disk2file %ld \"%s/fatman.d3\" >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  87.         ("")
  88.         (abort "\"disk2file\" must be in your PATH !")
  89.     )
  90.  
  91. (message ("\nInsert %s disk 4 into drive %s !" @app-name #CI_drive))
  92.     (if
  93.         (= 0 (run ("disk2file %ld \"%s/fatman.d4\" >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  94.         ("")
  95.         (abort "\"disk2file\" must be in your PATH !")
  96.     )
  97.  
  98.  
  99. (exit)
  100.  
  101.