home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1997 #3 / amigaacscoverdisc / games / installers / superwonderboy / install-wonderboy < prev    next >
Text File  |  1997-05-25  |  1KB  |  65 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3.  
  4.  
  5. ;----------------------------
  6.  
  7. ;try to figure out a place where the user usually installs his games
  8. (if (exists "Games:" (noreq) )
  9.     (set @default-dest "Games:")
  10.     (if (exists "SYS:Games" (noreq) )
  11.         (set @default-dest "SYS:Games")
  12.         (if (exists "Work:Games" (noreq) )
  13.             (set @default-dest "Work:Games")
  14.             (if (exists "JEUX:" (noreq) )
  15.                (set @default-dest "JEUX:")
  16.                (set @default-dest "SYS:")
  17.             )
  18.         )
  19.     )
  20. )
  21.  
  22. (set @default-dest
  23. (askdir
  24.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  25.     (help @askdir-help)
  26.     (default @default-dest)
  27.     (disk)
  28. )
  29. )
  30.  
  31. (set #dest (tackon @default-dest @app-name))
  32.  
  33.  
  34. (makedir #dest
  35.     (help @makedir-help)
  36.     (infos)
  37. )
  38.  
  39. ;----------------------------
  40.  
  41. (copyfiles
  42.     (help @copyfiles-help)
  43.     (source "SWBOYHD")
  44.     (dest #dest)
  45.     (infos)
  46. )
  47.  
  48.  
  49. (copyfiles
  50.     (help @copyfiles-help)
  51.     (source "swboyhd.readme")
  52.     (dest #dest)
  53.     (infos)
  54. )
  55.  
  56. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  57.     (if
  58.         (= 0 (run ("disk2file %ld \"%s/swboy.d1\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  59.         ("")
  60.         (abort "\"disk2file\" must be in your PATH !")
  61.     )
  62.  
  63. (exit)
  64.  
  65.