home *** CD-ROM | disk | FTP | other *** search
- ; Install Image Engineer V3.0
- ; © 1995-1996 Simon Edwards
- ; This script installs Image Engineer. Checks for need libraries, OS version
- ; CPU, and adds an assign to user-startup.
-
- (transcript "Installing Image Engineer...")
-
- (set #intromsg (cat "\nThis installs Image Engineer V3.0 on your\n"
- "hard disk and checks your Kickstart, CPU, and\n"
- "installed libraries.\n"))
-
- (message #intromsg)
-
- ;Check to see what version of the OS we're running on.
- (if (< (/ (getversion) 65536) 37)
- (
- (if (<> 1 (askbool (help @askbool-help) (prompt (cat "You must be using Kickstart 2.04+ to run Image Engineer.\n"
- "\n"
- "Do you wish to continue anyway?\n"))))
-
- (
- (abort "Aborting as the Kickstart is not sufficient.")
- )
- )
- )
- )
-
-
- ; Check to see what CPU we're running on.
- (if (>= 68020 (database "cpu"))
- (
- (if (<> 1 (askbool (help @askbool-help) (prompt (cat
- "\nYou need a 68020 CPU or better to run Image Engineer.\n"
- "\nDo you wish to continue anyway?\n"))))
- (
- (abort "Aborting as the CPU is not sufficient.")
- )
- )
- )
- )
-
-
- ;Check to see if superview.library is installed.
- (if (exists "LIBS:superview.library")
- (
- (set vernum (getversion "LIBS:superview.library"))
- (if (< vernum (+ (* 12 65536) 9))
- (
- (set ver (/ vernum 65536))
- (set rev (- vernum (* ver 65536)))
- (message (cat (
- "\nYou have V%ld.%ld of superview.library,\n" ver rev)
- "although Image Engineer will run with this version\n"
- "I recommend that you get V12.9 from Aminet or your\n"
- "local PD library. (See docs)."))
- )
- )
- )
-
- (
- (if (<> 1 (askbool (help @askbool-help) (prompt
- (cat "\nYou don't seem to have superview.library installed\n"
- "on your system. Image Engineer needs at least V7.0\n"
- "of superview.library in order to run.\n\n"
- "Do you wish to continue anyway?\n"))))
- (
-
- (abort (cat
- "Aborting...\n\n"
- "The latest version of superview.library\n"
- "should be available from an Aminet site\n"
- "or PD library near you.\n"))
- )
-
- )
- )
- )
-
- ;Check for BGUI.library V41.1
- (if (exists "LIBS:BGUI.library")
- (
-
- (set vernum (getversion "LIBS:BGUI.library"))
-
- (if (< vernum (+ (* 41 65536) 1))
- (
- (copyfiles (prompt "Copying new BGUI.library") (help @copyfiles-help)
- (source (tackon (pathonly @icon) "Libs/bgui.library")) (dest "LIBS:") (files))
- ))
- )
-
- (
- (copyfiles (prompt "Copying BGUI.library") (help @copyfiles-help)
- (source (tackon (pathonly @icon) "Libs/bgui.library")) (dest "LIBS:") (files))
- )
- )
-
- ;Get the destination directory from the user
- (set wheredir
- (askdir
- (prompt "Select a directory where you would like to install "
- "Image Engineer. (A drawer will be created there)")
- (help @askdir-help)
- (default @default-dest)
- )
- )
-
- ;Create the directory for Image Engineer
- (set wheredir (tackon wheredir "ImageEngineerV3.0"))
- (makedir wheredir (infos))
-
-
- (working "Installing Image Engineer...")
- ;Copy all of the files over to the destination
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (pattern "~(Install|Install.info|Libs|Libs.info)")
- (infos)
- (source (pathonly @icon))
- (dest wheredir)
- )
-
- ;Add an assign to user startup
- (startup "IMAGEENGINEER"
- (prompt "I need to add an assign to your\n\"s:user-startup\" file.")
- (help @startup-help)
- (command ("assign IE: \"%s\"\n" wheredir))
- )
-
- (exit "Please reboot your computer before running\nImage Engineer.")
-