home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Mecomp Multimedia 1
/
Mecomp-CD.iso
/
amiga
/
tools
/
system
/
sysinspector
/
install
next >
Wrap
Text File
|
1997-05-08
|
4KB
|
170 lines
; SI Installer Script
; $Ver: v1.02 (15-Apr-97)
; Written by Phil Vedovatti
(set @default-dest "Sys:Utilities")
(set #bad-kick
(cat "\n\nSorry! You must have Workbench 3.0 or"
"\nhigher to to use this package."
"\n\nAborting Installation!"))
(set #no-classact
(cat "\nHmmm! You don't seem to have the ClassAct 2.0"
"\nGUI system installed. You can obtain the"
"\nlatest ClassAct classes via ftp on the"
"\nInternet at: \n\n ftp.warped.com/pub/amiga/classact/"
"\n\nDo you wish to continue installation?"))
(set #Help-ContInstall
(cat "\nThis package requires ClassAct 2.0, which does not"
"\nappear to be installed on your system. Select"
"\n'Continue' to intall the program anyway, or select"
"\n'Abort' to end the installation."))
(set #hello-message
(cat "Welcome to the SysInspector Installation Utility."
"\n\nThis product is © 1997 by Eric Sauvageau."
"\n\nPlease support Amiga shareware authors with your contribution."))
(set #SI-dest
(cat "Where would you like SysInspector program to be"
"\ninstalled? A directory will NOT be created during"
"\nthe installation."))
(set #DC-dest
(cat "Where would you like SysInspector documentation to be"
"\ninstalled? The default directory is Help:. You may"
"\nselect a different destination if you wish."))
(set #BL-dest
(cat "Where would you like the boards.library to be"
"\ninstalled? The default directory is LIBS:, which"
"\nshould be appropriate for most users."))
(set #RQ-dest
(cat "Where would you like the reqtools.library to be"
"\ninstalled? The default directory is LIBS:, which"
"\nshould be appropriate for most users."))
(set #Install-Complete
(cat "\n\nPlease read the documentation carefully to get"
"\nthe most out of SysInspector. SysInspector is a"
"\npowerful and useful tool, but be sure you know"
"\nhow to use it to prevent loss of data."))
(set #wrongversion
(cat "You have an old version of the program 'Installer' "
"on your Amiga!\n\nThe installation procedure needs at least Installer 42.9.\n\n"
"Please check your configuration!"
))
(welcome #hello-message)
; ------------------------------
; Check Installer & Kickstart Version
; ------------------------------
(if (< @installer-version 2752521)
(
(message #wrongversion)
(exit (quiet))
)
)
(if (< (getversion) (* 39 65536))
(abort #bad-kick)
)
; ------------------------------
; Check if ClassAct 2.0 installed
; ------------------------------
(if (< (getversion "libs:window.class") (* 42 65536))
(set ContInstall
(askbool
(prompt #no-classact)
(help #Help-ContInstall)
(default 0)
(choices "Continue Installation" "Abort Installation")
)
)
)
(if (= ContInstall 1)
(abort "\nInstallation Aborted!")
)
; ------------------------------
; Get destinations
; ------------------------------
(set destdir-SI
(askdir
(prompt #SI-dest)
(help @askdir-help)
(default "Sys:Utilities")
)
)
(set destdir-DC
(askdir
(prompt #DC-dest)
(help @askdir-help)
(default "Help:")
)
)
(set destdir-BL
(askdir
(prompt #BL-dest)
(help @askdir-help)
(default "Libs:")
)
)
(set destdir-RQ
(askdir
(prompt #RQ-dest)
(help @askdir-help)
(default "Libs:")
)
)
; ------------------------------
; Installation
; ------------------------------
(copyfiles
(source "SysInspector")
(dest destdir-SI)
(infos)
)
(copyfiles
(source "SysInspector.guide")
(dest destdir-DC)
(infos)
)
(copylib
(source "libs/boards.library")
(dest destdir-BL)
)
(copylib
(source "libs/reqtools.library")
(dest destdir-RQ)
)
; ------------------------------
; Finishing up
; ------------------------------
;(run "C:run >NIL: sys:utilities/multiview CHANGES")
(message #Install-Complete)
(exit)