home *** CD-ROM | disk | FTP | other *** search
Wrap
(set #wrongversion (cat "You have an old version of the program 'Installer' " "on your Amiga!\n\nThis installation needs at least Installer 42.9,\n\n" "available on Aminet (ftp.wustl.edu)")) (set #bad-kick (cat "\n\nSorry! You must have Workbench 2.0 or" "higher to use this package.")) (set #bad-reqtools (cat "\n\nSorry! You must have reqtools.library V38+ installed" "to use this package.")) (set #welcome-message (cat "\nFileMagic ©1997 - 1998 Danny Shepherd")) (set #install-which (cat "\nWhich part(s) of File Magic would" "\nyou like to install onto your hard drive?\n")) (set #install-prefs (cat "\n\nSelect the preferances to install to Envarc:.")) (set #install-prefs-help (cat "It is recommended that you install the preferance file.\nFmagic.prefs is an example preferance file for use with FileMagic. It" "contains information for MultiFile and paths for the other tools.")) (set #install-dest (cat "\nWhich drawer would you like File Magic" "\nto be installed?" "\nA drawer will be created.")) (set #docs-dest (cat "Where would you like the FileMagic Documentation" "\nGuide to be installed?")) (set #exit-message (cat "\nPlease reboot your system to fully activate\n" "the new FileMagic System." "\n\n\nI hope you enjoy this package!" "\n\n\nCheck out the Official FileMagic Web Page at" "\nhttp://www.shepherd.home.ml.org")) ; ------------------------------------ ; Check Installer & Kickstart Version ; ------------------------------------ (if (< @installer-version 2752521) ( (message #wrongversion (all)) (exit (quiet)) ) ) (if (< (getversion "LIBS:version.library") (* 37 65536)) (abort #bad-kick) ) (if (< (getversion "LIBS:reqtools.library") (* 38 65536)) (abort #bad-reqtools) ) (welcome #welcome-message) ; ------------------------------ ; What should I install? ; ------------------------------ (complete 0) (set InstallOpt (askoptions (prompt #install-which) (help @askoptions-help) (choices "FileMagic" "Documentation") (default 1) ) ) ;-------------------------------------------------------- ; Install Main And Data Files ;-------------------------------------------------------- (complete 90) (if (BITAND InstallOpt 1) ((set destdir (askdir (prompt #install-dest) (help @askdir-help) (default "SYS:") ) ) ((set instdir (tackon destdir "FileMagic") ) ) (makedir instdir (infos) ) ((set datadir (tackon instdir "Data") ) ) (makedir instdir) (copyfiles (source "FileMagic") (dest instdir) (infos) ) (copyfiles (source "Data/File.1") (dest datadir) (infos) ) (copyfiles (source "Data/File.2") (dest datadir) (infos) ) ) ) ;------------------------------ ;Setup Assigns ;------------------------------ (complete 70) (set user-startup (cat "C:Assign >NIL: FileMagic: "instdir ) ) (startup "FileMagic" (prompt "\nFile Magic requires an assign to setup in" "\nyour user startup. Shall I add the following" "\nto your S:user-startup file?\n\n"user-startup ) (help @startup-help) (command user-startup) ) ;------------------------------ ;Install Prefs Files ;------------------------------ (complete 70) (copyfiles (prompt #install-prefs) (help #install-prefs-help) (source "prefs/") (choices "FMagic.prefs") (dest "Envarc:Sys/") (confirm) ) ;------------------------------ ;Install Documentation ;------------------------------ (complete 90) (if (BITAND InstallOpt 2) ((set destdir (askdir (prompt #docs-dest) (help @askdir-help) (default "Locale:Guides") ) ) (copyfiles (source "FileMagic.guide") (dest destdir) (infos) ) ) ) (complete 100) (message #exit-message (all)) (exit (quiet))