home *** CD-ROM | disk | FTP | other *** search
- ; $VER: V42PrinterInstall 42.1 (30.1.94)
- ; Script to install V42 printer.device
-
- (complete 0)
-
- (set #introduction
- (cat "\n\nThis program lets you install V42 of the printer.device "
- "onto a hard drive.\nV42 of the printer.device provides "
- "multi-threaded multi-printer support, printer management, "
- "and printing to files."
- ))
-
- (set #important
- (cat "\n***************************************************** "
- "* IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT * "
- "***************************************************** "
- "* THIS IS BETA MATERIAL * "
- "* DO NOT DISCLOSE, DISCUSS, OR DISTRIBUTE * "
- "* THIS SOFTWARE * "
- "* REPORT ALL BUGS TO BRIAN GONTOWSKI * "
- "***************************************************** "
- "\nPlease abort this install and delete these files if "
- "you can't understand or comply with these instructions\n\n"
- ))
-
- (set #ask-old
- (cat "Do you wish to save the V3x printer files?"
- ))
-
- (set #ask-old-help
- (cat "\nAnswering YES will make the install save the old printer "
- "related files to a specified directory. Otherwise, the files "
- "will be deleted.\n\n"
- ))
-
- (set #which-old
- (cat "In which directory should the OLD printer files be placed?"
- ))
-
- (set #which-old-help
- (cat "\nThis section lets you choose on which hard drive directory the "
- "old printer.device related files should go.\n\n"
- @askdir-help
- ))
-
- (set #which-pd
- (cat "In which directory should the V42 printer.device be installed?"
- ))
-
- (set #which-pd-help
- (cat "\nThis section lets you choose on which hard drive directory the "
- "V42 printer.device will be installed. This should normally go "
- "to the same directory as the V3x printer.device.\n\n"
- @askdir-help
- ))
-
- (set #which-prefs
- (cat "In which directory should the V42 Printer prefs be installed?"
- ))
-
- (set #which-prefs-help
- (cat "\nThis section lets you choose on which hard drive directory the "
- "V42 Printer prefs will be installed. This should normally go "
- "to the same directory as the V3x preferences programs.\n\n"
- @askdir-help
- ))
-
- (set #which-prtmgr
- (cat "In which directory should the V42 Printer prefs be installed?"
- ))
-
- (set #which-prtmgr-help
- (cat "\nThis section lets you choose on which hard drive directory the "
- "V42 Printer Manager will be installed.\n\n"
- @askdir-help
- ))
-
- (set #opt-ports
- (cat "Which printer ports do you wish to have installed?"
- ))
-
- (message #introduction)
-
- (message #important)
-
- (set saveold (askbool (prompt #ask-old)
- (help #ask-old-help)))
-
- (if (= saveold 1)
- (
- (set targetold (askdir (prompt #which-old)
- (help @askdir-help)
- (default "SYS:OLD")
- (disk)))
- ))
-
- (set targetpd (askdir (prompt #which-pd)
- (help #which-pd-help)
- (default "DEVS:")
- (disk)))
-
- (set targetprefs (askdir (prompt #which-prefs)
- (help #which-prefs-help)
- (default "SYS:Prefs")
- (disk)))
-
- (set targetprtmgr (askdir (prompt #which-prtmgr)
- (help #which-prtmgr-help)
- (default "SYS:System")
- (disk)))
-
- (set whichports (askoptions (prompt #opt-ports)
- (choices "Amiga Internal Parallel"
- "Amiga Internal Serial"
- "Print to File"
- "Envoy")
- (help)))
-
- (set @default-dest targetpd)
-
- (if (= saveold 1)
- (
- (if (exists (tackon targetpd "printer.device"))
- (
- (copyfiles (source (tackon targetpd "printer.device")) (dest targetold))
- ))
- (complete 5)
-
- (if (exists (tackon targetprefs "Printer"))
- (
- (copyfiles (source (tackon targetprefs "Printer")) (dest targetold))
- ))
- (complete 10)
-
- (if (exists (tackon targetprefs "Printer.info"))
- (
- (copyfiles (source (tackon targetprefs "Printer.info")) (dest targetold))
- ))
- (complete 15)
-
- (if (exists (tackon targetprefs "PrinterGfx"))
- (
- (copyfiles (source (tackon targetprefs "PrinterGfx")) (dest targetold))
- ))
- (complete 20)
-
- (if (exists (tackon targetprefs "PrinterGfx.info"))
- (
- (copyfiles (source (tackon targetprefs "PrinterGfx.info")) (dest targetold))
- ))
- (complete 25)
- ))
-
- (if (exists (tackon targetpd "printer.device"))
- (
- (delete (tackon targetpd "printer.device"))
- ))
- (complete 30)
-
- (if (exists (tackon targetprefs "Printer"))
- (
- (delete (tackon targetprefs "Printer"))
- ))
- (complete 35)
-
- (if (exists (tackon targetprefs "Printer.info"))
- (
- (delete (tackon targetprefs "Printer.info"))
- ))
- (complete 40)
-
- (if (exists (tackon targetprefs "PrinterGfx"))
- (
- (delete (tackon targetprefs "PrinterGfx"))
- ))
- (complete 45)
-
- (if (exists (tackon targetprefs "PrinterGfx.info"))
- (
- (delete (tackon targetprefs "PrinterGfx.info"))
- ))
- (complete 50)
-
- (copyfiles (source "printer.device") (dest targetpd))
- (complete 55)
-
- (copyfiles (source "Printer") (dest targetprefs))
- (complete 60)
-
- (copyfiles (source "Printer.info") (dest targetprefs))
- (complete 65)
-
- (copyfiles (source "PrtMgr") (dest targetprtmgr))
- (complete 70)
-
- (copyfiles (source "PrtMgr.info") (dest targetprtmgr))
- (complete 75)
-
- (if (not (exists (tackon targetpd "printerports")))
- (
- (makedir (tackon targetpd "printerports") (infos))
- ))
- (complete 80)
-
- (if (in whichports 0)
- (
- (copyfiles (source "printerports/Parallel 0.info") (dest (tackon targetpd "printerports")))
- ))
- (complete 85)
-
- (if (in whichports 1)
- (
- (copyfiles (source "printerports/Serial 0.info") (dest (tackon targetpd "printerports")))
- ))
- (complete 90)
-
- (if (in whichports 2)
- (
- (copyfiles (source "printerports/File.info") (dest (tackon targetpd "printerports")))
- ))
- (complete 95)
-
- (if (in whichports 3)
- (
- (copyfiles (source "printerports/Envoy.info") (dest (tackon targetpd "printerports")))
- ))
- (complete 100)
-