home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 29 / amigaformatcd29.iso / -screenplay- / hd_installers / fireandbrimstone / install-fireandbrimstone < prev    next >
Text File  |  1998-06-01  |  1KB  |  89 lines

  1. (set #CI_UNIT 0)
  2. (set #CI_DRIVE ("DF%ld:" #CI_UNIT))
  3.  
  4. ;----------------------------
  5.  
  6. ;try to figure out a place where the user usually installs his games
  7. (if (exists "Games:" (noreq) )
  8.     (set @default-dest "Games:")
  9.     (if (exists "SYS:Games" (noreq) )
  10.         (set @default-dest "SYS:Games")
  11.         (if (exists "Work:Games" (noreq) )
  12.             (set @default-dest "Work:Games")
  13.             (if (exists "JEUX:" (noreq) )
  14.                (set @default-dest "JEUX:")
  15.                (set @default-dest "SYS:")
  16.             )
  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 "F&BHD")
  44.     (dest #dest)
  45.     (infos)
  46. )
  47.  
  48. (copyfiles
  49.     (help @copyfiles-help)
  50.     (source "F&BHD.readme")
  51.     (dest #dest)
  52.     (infos)
  53. )
  54.  
  55. (message ("\nInsert Fire and Brimstone into drive %ld !" #CI_UNIT))
  56.     (if
  57.         (= 0 (run ("Ripper")))
  58.         ("")
  59.         (abort "\"Ripper\" must be in your PATH !")
  60.     )
  61.  
  62. (copyfiles
  63.     (source "DF0:FandB")
  64.     (dest #dest)
  65. )
  66.  
  67. (copyfiles
  68.     (source "F&B.d1")
  69.     (dest #dest)
  70. )
  71.  
  72. (copyfiles
  73.     (source "F&B.d2")
  74.     (dest #dest)
  75. )
  76.  
  77. (copyfiles
  78.     (source "HGH.dat")
  79.     (dest #dest)
  80. )
  81.  
  82.  
  83. (delete "F&B.d1")
  84. (delete "F&B.d2")
  85. (delete "HGH.dat")
  86.  
  87. (exit)
  88.  
  89.