home *** CD-ROM | disk | FTP | other *** search
- ; OS3.5 Detection script
- ; Written by Rick Hodger <rick@thehub.u-net.com>
- ; Freely distributable, just make sure you leave the credits here :)
- ;
- ; USAGE: Make two scripts, one called 'InstallOS3.5' (which has all your extra 3.5 gubbins) and another
- ; called 'InstallOS3.x' which is a standard script. Throw this one is 'Install' and it'll do
- ; all the OS3.5 detection/redirection for you.
- ;
- ; $VER: v1.3 (7.5.00)
-
- (user 2)
-
- (set #ask-install-os35 "\nDetected AmigaOS 3.5 (workbench.library v44)\n\nDo you want to use the enhanced OS3.5 installation?")
-
- (procedure install-normal
- (
- (run "C:Installer InstallOS3.x APPNAME SimpleFTP DEFUSER EXPERT MINUSER EXPERT LOGFILE RAM:SimpleFTP.log")
- )
- )
- (procedure install-enhanced
- (
- (run "C:Installer InstallOS3.5 APPNAME SimpleFTP DEFUSER EXPERT MINUSER EXPERT LOGFILE RAM:SimpleFTP.log")
- )
- )
-
- (welcome
- (set #wbversion 0)
- (set ask 0)
- (set #wbversion (getversion "workbench.library" (resident)))
- (set #wbversion (/ #wbversion 65536) )
- (if (= #wbversion 44)
- (
- (set ask
- (askbool
- (prompt #ask-install-os35)
- (help "Read the manual!")
- (choices "Yes" "No")
- )
- )
- )
- )
- ;
- (if (= ask 1) (
- (install-enhanced)
- ))
- (if (= ask 0) (
- (install-normal)
- ))
- (exit (quiet))
- )
-