home *** CD-ROM | disk | FTP | other *** search
- ;
- ; $PROJECT: dnode-handler
- ;
- ; $VER: Install 40.1 (02.08.97)
- ;
- ; $AUTHOR: Stefan Ruppert , Windthorststrasse 5 , 65439 Floersheim , GERMANY
- ;
- ; $COPYRIGHT: (C) Copyright 1997 by Stefan Ruppert, All Rights Reserved!
- ;
- ; $EMAIL: ruppert@amigaworld.com
- ;
- ; $HISTORY:
- ;
- ; 02.08.97 : 040.001 : initial
- ;
-
- ;
- ; customization section
- ;
-
- (set #basename "dnode-handler")
- (set #handler "dnode-handler")
- (set #mountentry "DNODE")
-
- (set #procedure
- "Please select the appropriate procedure:"
- )
-
- (set #procedure-help
- (cat
- "You can here select the Install procedure to install "
- "all nessecary files for the " @app-name ".\n"
- "Or select Remove to remove all previously installed "
- "files of the " @app-name " from your system.\n\n"
- )
- )
- (set #txt-mountdir-prompt
- "Should the handler be available directly after system start ?"
- )
- (set #txt-mountdir-help
- (cat
- "If the handler should be available directly after system start, "
- "the mount entry is copies to Devs:DOSDrivers otherwise to "
- "Sys:Storage/DOSDrivers.\n\n"
- )
- )
-
- (set #txt-copy-mount-entry-prompt
- "Copying mount entry"
- )
- (set #txt-copy-handler-prompt
- "Copying handler"
- )
-
- ;
- ; independend Installer script
- ;
-
- (welcome #welcome-help)
-
- (set mode
- (askchoice
- (prompt #procedure)
- (help (cat #procedure-help @askchoice-help))
- (choices "Install" "Remove")
- )
- )
-
- (if mode
- (set pmode "Remove")
- (set pmode "Install")
- )
-
- (if (= 0 (askchoice
- (prompt #txt-mountdir-prompt)
- (help (cat #txt-mountdir-help @askchoice-help))
- (choices "Yes" "No"))
- )
- (
- (set #mountdir "Devs:DOSDrivers")
- ) ; else
- (
- (set #mountdir "Sys:Storage/DOSDrivers")
- )
- )
-
- (set #classdir
- (askdir
- (prompt "Where do the Classes belong?")
- (help @askdir-help)
- (default "Sys:Classes")
- )
- )
-
- ; now do install or remove
- (if mode
- ; Remove
- (
- ; Show what we are doing
- (working "Removing " @app-name)
-
- ; Remove the non-standard pieces
- (delete (tackon #mountdir #mountentry))
- (delete (tackon "L:" #handler))
- (foreach (tackon #classdir "dnode") "#?"
- (delete (tackon (tackon #classdir "dnode") @each-name))
- )
- (delete (tackon #classdir "dnode"))
-
- ; Don't want to use the confusing "Installation Complete" message
- ; when what we really did was remove things...
- (message "The \"" @app-name "\" components "
- "that you specified have been successfully removed")
- (exit (quiet))
- )
-
- ; Install
- (
- (working "Installing " @app-name)
-
- (complete 0)
-
- ; Install the mount entry
- (copyfiles
- (prompt #txt-copy-mount-entry-prompt)
- (help @copylib-help)
- (source (tackon "Devs/DOSDrivers" #mountentry))
- (dest #mountdir)
- (confirm)
- )
-
- (complete 33)
-
- ; Install the mount entry
- (copyfiles
- (prompt #txt-copy-handler-prompt)
- (help @copylib-help)
- (source (tackon "l" #handler))
- (dest "L:")
- (newname #handler)
- (confirm)
- )
-
- (complete 66)
-
- (foreach "classes/dnode" "#?"
- (copylib
- (prompt (cat "Copying " @each-name))
- (help @copylib-help)
- (source (tackon "classes/dnode" @each-name))
- (dest (tackon #classdir "DNode"))
- (confirm)
- )
- )
-
- (complete 100)
- )
- )
-
- (set @default-dest #mountdir)
-
-