home *** CD-ROM | disk | FTP | other *** search
/ The Amiga Game Guide / AmigaGameGuide_CD.iso / Amiga / Game-Installer / JST-Installer / Anarchy / Install-Anarchy < prev    next >
Encoding:
Text File  |  1978-01-01  |  1.5 KB  |  78 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. (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.  
  56. (copyfiles
  57.     (help @copyfiles-help)
  58.     (source "AnarchyHD")
  59.     (dest #dest)
  60.     (infos)
  61. )
  62.  
  63. (copyfiles
  64.     (help @copyfiles-help)
  65.     (source "anrchyhd.readme")
  66.     (dest #dest)
  67.     (infos)
  68. )
  69.  
  70. (message ("\nInsert %s into drive %s !" @app-name #CI_drive))
  71.     (if
  72.         (= 0 (run ("owjs2file %ld \"%s/anarchy.d1\" 2 155 >con:0/0/450/100//CLOSE/WAIT" #CI_unit #dest)))
  73.         ("")
  74.         (abort "\"owjs2file\" must be in your PATH !")
  75.     )
  76. (exit)
  77.  
  78.