home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1997 #3 / amigaacscoverdisc / games / shareware / headquarters / install < prev    next >
Text File  |  1997-03-06  |  3KB  |  152 lines

  1. ; $VER: Install_Headquarters (23.01.97)
  2. ; © 1997 by Andreas Smigielski
  3. ; This is the Installer Script for Headquarters
  4.  
  5.  (set MSG_wrong_OS            "You need at least OS V2.04 to run Headquarters !")
  6.  (set MSG_InstallingHeadQ     "Installing Headquarters now.")
  7.  (set MSG_SelectPath          "Select path to install Headquarters to")
  8.  (set MSG_InstallingCatalogs  "Installing Catalog-Files for OS V2.1+\nCode localization.")
  9.  (set MSG_SelectCatalogPath   "Select path to install Catalogs to")
  10.  (set MSG_InstallingFonts     "Installing System Fonts.")
  11.  (set MSG_SelectFontsPath     "Select path to install Fonts to")
  12.  (set MSG_DoInstallHeadQ      "Headquarters has been installed.")
  13.  (set MSG_InstallingLibs      "Copying Libraries...")
  14.  
  15. (set OS_VER (/ (getversion) 65536) )
  16.  
  17. (if(< OS_VER 37)
  18.   (abort MSG_wrong_OS)
  19. )
  20.  
  21. (complete 0)
  22.  
  23. (copyfiles
  24.   (prompt MSG_Installing)
  25.   (help @copyfiles-help)
  26.   (source "")
  27.   (set hqcomdir
  28.               (askdir
  29.                      (prompt MSG_SelectPath)
  30.                      (help @askdir-help)
  31.                      (newpath)
  32.                      (default "Work:Headquarters")
  33.               )
  34.   )
  35.   (dest hqcomdir)
  36.   (all)
  37.   (confirm)
  38. )
  39.  
  40. (complete 65)
  41.  
  42. (copyfiles
  43.   (prompt MSG_InstallingCatalogs)
  44.   (help @copyfiles-help)
  45.   (source "catalogs")
  46.   (set hqcatdir
  47.               (askdir
  48.                      (prompt MSG_SelectCatalogPath)
  49.                      (help @askdir-help)
  50.                      (newpath)
  51.                      (default "SYS:locale/Catalogs")
  52.               )
  53.   )
  54.   (dest hqcatdir)
  55.   (all)
  56.   (confirm)
  57. )
  58.  
  59. (complete 70)
  60.  
  61. (copyfiles
  62.   (prompt MSG_InstallingFonts)
  63.   (help @copyfiles-help)
  64.   (source "fonts")
  65.   (set hqfontdir
  66.               (askdir
  67.                      (prompt MSG_SelectFontsPath)
  68.                      (help @askdir-help)
  69.                      (newpath)
  70.                      (default "FONTS:")
  71.               )
  72.   )
  73.   (dest hqfontdir)
  74.   (all)
  75.   (confirm)
  76. )
  77.  
  78. (complete 75)
  79.  
  80. (copylib
  81.   (prompt MSG_InstallingLibs)
  82.   (help @copylib-help)
  83.   (source "libs/superplay.library")
  84.   (set hqlibdir
  85.               (askdir
  86.                      (prompt "Library Path")
  87.                      (help @askdir-help)
  88.                      (newpath)
  89.                      (default "LIBS:")
  90.               )
  91.   )
  92.   (dest hqlibdir)
  93.   (confirm)
  94. )
  95.  
  96. (complete 80)
  97.  
  98. (set @default-dest hqlibdir)
  99.  
  100. (copylib
  101.   (prompt MSG_InstallingLibs)
  102.   (help @copylib-help)
  103.   (source "libs/gadutil.library")
  104.   (dest hqlibdir)
  105.   (confirm)
  106. )
  107.  
  108. (complete 85)
  109.  
  110. (set @default-dest hqlibdir)
  111.  
  112. (copylib
  113.   (prompt MSG_InstallingLibs)
  114.   (help @copylib-help)
  115.   (source "libs/powerpacker.library")
  116.   (dest hqlibdir)
  117.   (confirm)
  118. )
  119.  
  120. (complete 90)
  121.  
  122. (set @default-dest hqlibdir)
  123.  
  124. (copylib
  125.   (prompt MSG_InstallingLibs)
  126.   (help @copylib-help)
  127.   (source "libs/reqtools.library")
  128.   (dest hqlibdir)
  129.   (confirm)
  130. )
  131.  
  132. (complete 95)
  133.  
  134. (set #spobjdir   (tackon hqlibdir "spobjects"))
  135. (makedir #spobjdir)
  136.  
  137. (copyfiles
  138.   (prompt "Installing spobjects to LIBS:spobjects ...")
  139.   (help @copyfiles-help)
  140.   (source "libs/spobjects")
  141.   (dest (tackon hqlibdir "spobjects"))
  142.   (pattern "#?")
  143.   (confirm)
  144.   (files)
  145. )
  146.  
  147. (complete 100)
  148.  
  149. (set @default-dest hqcomdir)
  150.  
  151. (exit MSG_DoInstallHeadQ)
  152.