home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 28 / amigaformatcd28.iso / -screenplay- / hd_installers / creatures / install-creatures < prev    next >
Text File  |  1998-04-23  |  2KB  |  80 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3. (set #rip "abaddon")
  4. (set #dismount "dismount")
  5.  
  6.  
  7. ;----------------------------
  8.  
  9. ;try to figure out a place where the user usually installs his games
  10. (if (exists "Games:" (noreq) )
  11.     (set @default-dest "Games:")
  12.     (if (exists "SYS:Games" (noreq) )
  13.         (set @default-dest "SYS:Games")
  14.         (if (exists "Work:Games" (noreq) )
  15.             (set @default-dest "Work:Games")
  16.             (if (exists "JEUX:" (noreq) )
  17.                (set @default-dest "JEUX:")
  18.                (set @default-dest "SYS:")
  19.             )
  20.         )
  21.     )
  22. )
  23.  
  24. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch)")
  25.  
  26.  
  27. (set @default-dest
  28. (askdir
  29.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  30.     (help @askdir-help)
  31.     (default @default-dest)
  32.     (disk)
  33. )
  34. )
  35.  
  36. (set #dest (tackon @default-dest @app-name))
  37.  
  38.  
  39. (makedir #dest
  40.     (help @makedir-help)
  41.     (infos)
  42. )
  43.  
  44. ;----------------------------
  45.  
  46.  
  47. (copyfiles
  48.     (help @copyfiles-help)
  49.     (source "CreaturesHD")
  50.     (dest #dest)
  51.     (infos)
  52. )
  53.  
  54. (copyfiles
  55.     (help @copyfiles-help)
  56.     (source "creatrhd.readme")
  57.     (dest #dest)
  58.     (infos)
  59. )
  60.  
  61. (makeassign    #rip #dest)
  62.  
  63. (message ("\nReady to rip %s disk 1?\n\nThe screen will go black" @app-name))
  64.  
  65.     (if
  66.         (= 0 (run ("jst cretrip1 QUIET")))
  67.         ("")
  68.         (abort "\"jst\" must be in your PATH !")
  69.     )
  70. (message ("\nReady to rip %s disk 2?\n\nThe screen will go black" @app-name))
  71.  
  72.     (if
  73.         (= 0 (run ("jst cretrip2 QUIET")))
  74.         ("")
  75.         (abort "\"jst\" must be in your PATH !")
  76.     )
  77. (makeassign    #rip)
  78. (exit)
  79.  
  80.