home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d9xx / d959 / hqmm.lha / HQMM / Install_HQMM < prev    next >
Text File  |  1993-11-24  |  3KB  |  115 lines

  1.  
  2. ;Install script for HeroQuest MapMaker. Copyright © 1993 Camiel Rouweler.
  3. ;$VER: Install_HQMM 1.04 (05-nov-1993)
  4.  
  5. (welcome
  6.    "Welcome to the HQMM installer\n"
  7. )
  8.  
  9. (message
  10.    "This utility will install HQMM to your system.\n"
  11.    "If you have an older version of HQMM installed it will be overwritten "
  12.    "when you install HQMM to the same directory as the older version.\n"
  13.    "Also, during the installation, a font will be copied into your FONTS: "
  14.    "drawer. This is required in order to let HQMM run.\n"
  15.    "About 120 kB free diskspace is required, plus 10 more for the font"
  16. )
  17.  
  18. (if (exists "Work:" (noreq))
  19.    (set @default-dir "Work:HQMM") ;then clause
  20.    (set @default-dir "SYS:HQMM")  ;else clause
  21. )
  22.  
  23.  
  24. (set destdir
  25.    (askdir
  26.       (prompt "select a directory where you want HQMM installed to.")
  27.       (help @askdir-help)
  28.       (default @default-dir)
  29.       (newpath)
  30.    )
  31. )
  32.  
  33. (set @default-dest destdir)
  34.  
  35. (if (NOT (exists destdir (noreq)))
  36.    (makedir destdir
  37.       (prompt "I will now create the directory " destdir)
  38.       (help @makedir-help)
  39.       (infos)
  40.    )
  41. )
  42.  
  43. (copyfiles
  44.    (prompt "Select files to install" destdir)
  45.    (help "HQMM\nThis is the executable file.\n\n"
  46.          "StoryPaper\nThis is an IFF file that is used for printing the story. "
  47.          "This one is required if you want to print new missions.\n\n"
  48.          "HQMM.guide\nThis is the documentation file in which is explained how "
  49.          "to use HQMM. To read this file, you need the AmigaGuide utility. "
  50.          "This utility can also be installed if necessary.\n\n"
  51.          "HQMM.History\nThis is a log file in which all improvements and bug "
  52.          "fixes on HQMM are reported.\n\n"
  53.          "General help:\n"
  54.          @copylib-help)
  55.    (source "")
  56.    (dest destdir)
  57.    (choices "HQMM" "StoryPaper" "HQMM.guide" "HQMM_example" "HQMM.History")
  58.    (infos)
  59.    (confirm)
  60. )
  61.  
  62. (if (NOT (exists "FONTS:heroquest.font" (noreq)))
  63.    (
  64.       (message
  65.          "I will now create a new directory in your FONTS: drawer to "
  66.          "store the HQMM font."
  67.          (help "This font is required by HQMM in order to run.")
  68.       )
  69.       (copyfiles
  70.          (prompt "OK to copy HQMM font to FONTS:heroquest?")
  71.          (help @copyfiles-help)
  72.          (source "fonts")
  73.          (dest "FONTS:")
  74.          (choices "heroquest")
  75.          (fonts)
  76.          (confirm)
  77.       )
  78.    )
  79. )
  80.  
  81. (if (OR (NOT (exists "FONTS:Times/18")) (NOT(exists "FONTS:Times/24")))
  82.    (message
  83.       "Warning: The font Times/18 or Times/24 is not installed in your "
  84.       "FONTS: drawer. HQMM needs these in order to run."
  85.       (help "Use the Commodore system installer utility to install these "
  86.             "fonts to your system.")
  87.    )
  88. )
  89.  
  90. (if (AND (NOT (exists "SYS:Utilities/AmigaGuide" (noreq)))
  91.          (NOT (exists "SYS:Utilities/MultiView" (noreq)))
  92.     )
  93.    (
  94.       (copylib
  95.          (prompt "OK to copy utility AmigaGuide to SYS:Utilities?")
  96.          (help "You need this utility to view the HQMM guide" @copyfiles-help)
  97.          (source "AmigaGuide")
  98.          (dest "SYS:Utilities")
  99.          (confirm)
  100.       )
  101.       (if (NOT (exists "Libs:amigaguide.library" (noreq)))
  102.          (copylib
  103.             (prompt "OK to copy amigaguide.library to Libs:?")
  104.             (help "This library is required to run the AmigaGuide utility.")
  105.             (source "libs/amigaguide.library")
  106.             (dest "Libs:")
  107.          )
  108.       )
  109.    )
  110. )
  111.  
  112. (exit
  113.    "\n\nHave a nice day!"
  114. )
  115.