home *** CD-ROM | disk | FTP | other *** search
/ Merciful 3 / Merciful_Release_3.bin / software / r / raystormv1.16cracked.lha / Install_RayStorm < prev    next >
Text File  |  1996-01-24  |  6KB  |  189 lines

  1. ; Install_RayStorm - RayStorm installation script for Installer
  2. ;
  3. ; Copyright © 1995 Andreas Heumann
  4. ;
  5. ; $Id: Install_RayStorm,v 1.2 1996/24/01
  6. ;
  7. ;     Installer and Installer project icon
  8. ;     (c) Copyright 1991-93 Commodore-Amiga, Inc.  All Rights Reserved.
  9. ;     Reproduced and distributed under license from Commodore.
  10. ;
  11. ;     INSTALLER SOFTWARE IS PROVIDED "AS-IS" AND SUBJECT TO CHANGE;
  12. ;     NO WARRANTIES ARE MADE.  ALL USE IS AT YOUR OWN RISK.  NO LIABILITY
  13. ;     OR RESPONSIBILITY IS ASSUMED.
  14. ;
  15. ;
  16. (welcome "    Welcome to the " @app-name " 1.16 installation.\n")
  17.  
  18. ; What we are?
  19. (set app-name (cat @app-name " 1.16"))
  20.  
  21. ; "Needs"
  22. (set need-version 37)  ; version of operating system need by RayStorm
  23.  
  24. ; These directories are always present
  25. (set dir-pat "(docs|textures|modules)")
  26.  
  27. ; The source directory name
  28. (set source-dir
  29.  (if (= 1 (exists @icon))
  30.   (pathonly (expandpath @icon))
  31.   (expandpath @icon)
  32.  )
  33. )
  34.  
  35. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  36. (procedure
  37.  check-system-version
  38.  ;; is your Exec recent enough?
  39.  (set exec-version (/ (getversion) 65536))
  40.  (transcript "Running on exec version " exec-version ".")
  41.  (if (< exec-version need-version)    ; check operating system version
  42.   (
  43.    (message "The " @app-name " needs at least Exec version " need-version
  44.              " to run.\nYou have only version " exec-version ".\n"
  45.              "You can proceed with the installation, but consider "
  46.              "installing the " @app-name " with proper version of "
  47.              "the operating system."
  48.      (help "    The " @app-name " uses some system functions "
  49.             "that are not present or functional in earlier system "
  50.             "versions. Consider updating your system.\n"
  51.             "    If you have a later version of operating system "
  52.             "and are only now using older version: be sure to use "
  53.             "only release 2.04 or newer with the " @app-name ". "
  54.             "No damage happens if you run the " @app-name " with an "
  55.             "earlier operating system, however. It just "
  56.             "refuses to start.\n"
  57.             "    If you decide to continue, no changes will be made to "
  58.             "system startup files, so you must edit them yourself. "
  59.             "Refer instructions for manual installation."
  60.      )
  61.     )
  62.    (transcript "User decided to continue installation while running "
  63.                  "on operating system release earlier than 2.04."
  64.     )
  65.   )
  66.  )
  67. )
  68.  
  69. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  70. (procedure select-destination-directory
  71.  ;; Select destination directory for the installation. We suggest the user
  72.  ;; to install to the place from where the installer was started. This is
  73.  ;; since normally this software will be unarchived to its proper location
  74.  ;; and the files don't have to be copied any more.
  75.  ;;
  76.  (transcript "Selecting destination directory for the installation.")
  77.  (while
  78.   (
  79.     (set @default-dest
  80.      (askdir
  81.       (prompt "Select directory where to install " app-name ".\n"
  82.               "You have to create a directory for " app-name " yourself."
  83.      )
  84.       (help "    Here you can specify location where to install "
  85.               "the " app-name ".\n"
  86.               "    Installation can be made on-place. "
  87.               "This is recommended if you have already unarchived "
  88.               "the " app-name " archive to its final location. "
  89.               "In this case "
  90.               "most of the files are left where they are. "
  91.               "Only necessary files are copied to different "
  92.               "positions.\n"
  93.      )
  94.       (newpath)
  95.       (default source-dir)
  96.     )
  97.    )
  98.    (if (= 2 (exists @default-dest))
  99.      0
  100.      (makedir @default-dest
  101.       (infos)
  102.      )
  103.     )
  104.   )
  105.  )
  106. )
  107.  
  108. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  109. (procedure
  110.  copy-files-to-destination ;;; Copy all files if not installing on-place
  111.  ;;
  112.  (if (= source-dir (expandpath @default-dest))
  113.   (message "\nSource and destination directories are the same, "
  114.             "not copying."
  115.     (help "    The " app-name " files don't have to be copied, "
  116.            "since the source and the destination directories are "
  117.            "the same."
  118.     )
  119.   )
  120.   ((transcript "Copying " app-name " files from " source-dir " to "
  121.                 @default-dest "."
  122.     )
  123.    (foreach source-dir dir-pat
  124.     (
  125.      (set dest-dir (tackon @default-dest @each-name))
  126.       (if (NOT (exists dest-dir))
  127.        (makedir dest-dir)
  128.       )
  129.       (copyfiles (all)
  130.         (source (expandpath @each-name))
  131.         (dest dest-dir)
  132.         (prompt "Copying files to the selected location.")
  133.         (optional "askuser")
  134.       )
  135.      )
  136.     )
  137.   )
  138.  )
  139. )
  140.  
  141. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  142. ;;;
  143. ;;; Installatation sequence
  144. ;;;
  145. (message "Please remember during this installation:\n\n"
  146.      "    Read the instructions provided behind the \"Help\" "
  147.      "buttons, if you are not absolutely sure what you are doing.\n"
  148. )
  149.  
  150. (complete 00)
  151. (transcript "On making " app-name ".")
  152. (check-system-version)
  153. (complete 10)
  154. (select-destination-directory)
  155. (complete 20)
  156. (copy-files-to-destination)
  157. (copyfiles (source source-dir)
  158.  (dest @default-dest)
  159.  (prompt "Copying files to the selected location.")
  160.  (choices "Examples.jpg" "Modeller preview.iff" "Readme")
  161.  (files)
  162.  (infos)
  163.  (optional "askuser")
  164. )
  165. (complete 40)
  166. (copyfiles (source source-dir)
  167.  (dest @default-dest)
  168.  (prompt "Copying files to the selected location.")
  169.  (choices  "Readme.mui" "Register" "Whats new.txt" "Docs.info")
  170.  (files)
  171.  (infos)
  172.  (optional "askuser")
  173. )
  174. (complete 70)
  175. (copyfiles (source source-dir)
  176.  (dest @default-dest)
  177.  (prompt "Copying files to the selected location.")
  178.  (choices  "RayStorm" "RayStorm.info")
  179.  (files)
  180.  (infos)
  181.  (optional "askuser")
  182. )
  183. (complete 100)
  184.  
  185. ;;; All done!
  186.  
  187. ; EOF
  188.  
  189.