home *** CD-ROM | disk | FTP | other *** search
- ; Install Image Engineer 3.41 part 1
- ; © 1995-1997 Simon Edwards
- ; This script installs the first archive of Image Engineer 3.41
- ; Checks for need libraries, OS version CPU, and adds an assign to user-startup.
-
- (transcript "Installing Image Engineer part 1...")
-
- (set #intromsg (cat "\nThis installs the first part of Image "
- "Engineer V3.41 on your hard disk and checks your "
- "Kickstart, CPU, and installed libraries."))
-
- (message #intromsg)
-
- (set defaultdest @default-dest)
-
- ;Check for a previous installation.
- (if (not (= (exists "IE:" (noreq)) 0))
- (
- (set oldiepath (expandpath "IE:"))
- (set newoldiepath (tackon (pathonly oldiepath)
- ("Old%s" (fileonly oldiepath))))
-
- (message (cat "An already existing version of Image Engineer "
- ("has been found at:-\n\n%s\n\n" oldiepath))
- ("I will rename this to:-\n\n%s\n\n" newoldiepath)
- "You may delete the old directory afterwards if you choose."
- )
-
- (set defaultdest (pathonly oldiepath))
- (rename oldiepath newoldiepath)
- (rename ("%s.info" oldiepath) ("%s.info" newoldiepath))
-
- )
- )
-
- ;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 (not (exists "LIBS:superview.library"))
- (
- (if (<> 1 (askbool (help @askbool-help) (prompt
- (cat "\nYou don't seem to have the Superview library installed\n"
- "on your system. Image Engineer needs at least V15.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
- (copylib (prompt "Copying new BGUI.library") (help @copyfiles-help)
- (source (tackon (pathonly @icon) "Libs/bgui.library")) (dest "LIBS:"))
-
- ;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 defaultdest)
- )
- )
-
- ;Create the directory for Image Engineer
- (set wheredir (tackon wheredir "ImageEngineerV3.41"))
- (makedir wheredir (infos))
-
-
- (working "Installing Image Engineer...")
- ;Copy all of the files over to the destination
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (pattern "~(Install_Part_1|Install_Part_1.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))
- )
-
- (makeassign "IE" wheredir)
-
- (exit (cat
- "Please remember to install the second part (ImEngV3.41p2.lha) "
- "of Image Engineer V3.41 before trying to run it."))
-
-