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

  1. (set GameDir "JimPower")
  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. (set #dest
  18.      (tackon (askdir (prompt "Where would you like " @app-name " installed?\n"
  19.                              "A drawer called " GameDir " will be created.")
  20.                      (help @askdir-help)
  21.                      (default @default-dest)
  22.                      (newpath)
  23.              )
  24.      GameDir
  25.      )
  26. )
  27.  
  28. (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) or on my site")
  29.  
  30. (set #CI_unit
  31.     (askchoice
  32.         (prompt "From which disk unit do you want\nto install the game")
  33.         (help    @askoptions-help)
  34.         (choices
  35.            "DF0:"
  36.            "DF1:"
  37.            "DF2:"
  38.            "DF3:"
  39.         )
  40.     )
  41. )
  42.  
  43. (set #CI_drive ("DF%ld:" #CI_unit))
  44.  
  45.  
  46. (makedir #dest
  47.     (help @makedir-help)
  48.     (infos)
  49. )
  50.  
  51. ;----------------------------
  52.  
  53. (copyfiles
  54.     (help @copyfiles-help)
  55.     (source "jimhd")
  56.     (dest #dest)
  57.     (infos)
  58. )
  59.  
  60. (copyfiles
  61.     (help @copyfiles-help)
  62.     (source "jimhd.readme")
  63.     (dest #dest)
  64.     (infos)
  65. )
  66.  
  67. # let's have the names WHDLoad compatible (thanks Roderick!)
  68.  
  69. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  70.     (if
  71.         (= 0 (run ("disk2file %ld %s >con:///1000//CLOSE/WAIT" #CI_unit (tackon #dest "disk.1") )))
  72.         ("")
  73.         (abort "\"disk2file\" must be in your PATH !")
  74.     )
  75.  
  76. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  77.     (if
  78.         (= 0 (run ("disk2file %ld %s >con:///1000//CLOSE/WAIT" #CI_unit (tackon #dest "disk.2") )))
  79.         ("")
  80.         (abort "\"disk2file\" must be in your PATH !")
  81.     )
  82.  
  83.