home *** CD-ROM | disk | FTP | other *** search
/ The Amiga Game Guide / AmigaGameGuide_CD.iso / Amiga / Game-Installer / WHD_Installers / Games_S-T / ToobinHD / Install-Toobin < prev    next >
Text File  |  1977-12-31  |  2KB  |  118 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3. (set #Imager "disk2file")
  4. (set #readme "toobin")            ; %shd.readme
  5.  
  6. ;----------------------------
  7.  
  8. ;try to figure out a place where the user usually installs his games
  9. (if (exists "Games:" (noreq) )
  10.     (set @default-dest "Games:")
  11.     (if (exists "SYS:Games" (noreq) )
  12.         (set @default-dest "SYS:Games")
  13.         (if (exists "Work:Games" (noreq) )
  14.             (set @default-dest "Work:Games")
  15.             (if (exists "JEUX:" (noreq) )
  16.                (set @default-dest "JEUX:")
  17.                (set @default-dest "SYS:")
  18.             )
  19.         )
  20.     )
  21. )
  22.  
  23. (message "\n\n\nThis loader requires either JST or WHDLoad (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST and WHDLoad are available from aminet (game/patch)")
  24.  
  25.  
  26. (set @default-dest
  27. (askdir
  28.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  29.     (help @askdir-help)
  30.     (default @default-dest)
  31.     (disk)
  32. )
  33. )
  34.  
  35. (set #dest (tackon @default-dest @app-name))
  36. (set #CI_unit
  37.     (askchoice
  38.         (prompt "From which disk unit do you want\nto install the game")
  39.         (help    @askoptions-help)
  40.         (choices
  41.            "DF0:"
  42.            "DF1:"
  43.            "DF2:"
  44.            "DF3:"
  45.         )
  46.     )
  47. )
  48. (set #CI_drive ("DF%ld:" #CI_unit))
  49.  
  50. (set #Game_Ver
  51.     (askchoice
  52.         (prompt "Which version of the loader do you wish to install")
  53.         (help    @askoptions-help)
  54.         (choices
  55.            "JST"
  56.            "WHDLoad"
  57.         )
  58.     )
  59. )
  60.  
  61.  
  62. (makedir #dest
  63.     (help @makedir-help)
  64.     (infos)
  65. )
  66.  
  67. ;----------------------------
  68.  
  69.  
  70. (if (= #Game_Ver 0)
  71. (copyfiles
  72.   (help @copyfiles-help)
  73.   (source ("JHD.inf"))
  74.   (newname ("%sHD.info" @app-name ))
  75.   (dest #dest)
  76. ))
  77. (if (= #Game_Ver 0)
  78. (copyfiles
  79.   (help @copyfiles-help)
  80.   (source ("HD"))
  81.   (newname ("%sHD" @app-name ))
  82.   (dest #dest)
  83. ))
  84. (if (= #Game_Ver 1)
  85. (copyfiles
  86.   (help @copyfiles-help)
  87.   (source ("WHD.inf"))
  88.   (newname ("%sHD.info" @app-name ))
  89.   (dest #dest)
  90. ))
  91. (if (= #Game_Ver 1)
  92. (copyfiles
  93.   (help @copyfiles-help)
  94.   (source ("HD.slave" ))
  95.   (newname ("%sHD.slave" @app-name ))
  96.   (dest #dest)
  97. ))
  98. (copyfiles
  99.   (help @copyfiles-help)
  100.   (source ("%shd.readme" #readme))
  101.   (dest #dest)
  102. )
  103. (copyfiles
  104.   (help @copyfiles-help)
  105.   (source ("%shd.readme.info" #readme))
  106.   (dest #dest)
  107. )
  108.  
  109. (message ("\nInsert %s into drive %s !" @app-name #CI_drive))
  110.     (if
  111.         (= 0 (run ("%s %ld \"%s/disk.1\" >con:0/0/450/200//CLOSE/WAIT" #Imager #CI_unit #dest )))
  112.         ("")
  113.         (abort "\"%s\" must be in your PATH !")
  114.     )
  115.  
  116. (exit)
  117.  
  118.