home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The AGA Experience 2
/
agavol2.iso
/
software
/
utilities
/
misc
/
studio_update
/
install-studioupdate
< prev
next >
Wrap
Text File
|
1996-01-12
|
17KB
|
622 lines
; $VER: StudioUpdate 2.10b (29.12.96)
; Copyright (C)1992-95 Wolf Faust
(complete 0)
(delopts "oknodelete" "force" "askuser")
(set #waitmsg
(cat "\n\n\n\nWorking. Please wait..."
))
(set #bad-kick
(cat "\nYour system software is very old. "
"You must use at least Kickstart 2.04 for all Studio programs. "
))
(set #bad-version
(cat "This update will only update Studio V2.10 and older. "
"Your Studio disks are version %ld.%ld. Running this update doesn't make sense. "
))
(set #w-studio
(cat "Select the action(s) to perform."
))
(set #w-studio-help
(cat "This disk comes with new and additional software for some printers.\n"
"You can update your current used software update.\n"
"Or you can update the software and add the additional printer software.\n\n"
@askchoice-help
))
(set #w-studio-choices1
(cat "Update Studio driver and printing program"
))
(set #w-studio-choices2
(cat "And add new Canon BJC 610 software"
))
(set #w-studio-choices3
(cat "And add new Deskjet 6xx software"
))
(set #w-studio-choices4
(cat "And add new Deskjet 8xx software"
))
(set #w-studio-choices5
(cat "And add new Deskjet 1600 software"
))
(set #abortunpack
(cat "\nError occured while running the installation decompression program. "
"The error occured during decompressing of the file:\n\n\"%s\"\n\n"
))
(set #foundstudio
(cat "\nI found your Studio printing program. Can I update the program in the drawer:\n\n%s\n\n"
))
(set #foundstudiohelp
(cat "When selecting yes, the Studio program will be updated in the location found.\n\n"
"When selecting no, you will be asked for a Studio filename you want to update\n\n"
))
(set #ask-studiomod
(cat "\nSelect the disk or drawer the 'Studio' application program is placed in. "
))
(set #ask-studiomod-help
(cat "You should now select the drawer the 'Studio' application program is placed in. "
"Usually the program is placed in the Studio drawer and thus the Studio drawer "
"should be selected.\n\n"
@askdir-help
))
(set #nostudiopro
(cat "\nSorry, I can't find the \"Studio\" program. I tried to access %s. "
"Please check the drawer and program name try installing again. "
))
(set #updatescan
(cat "\nI can't find the CMSScan program in your Studio drawer.\n\n"
"Select YES, if you want to update the CMSScan and CMSEdit program. "
"You will be asked for a drawer containing the CMSScan program.\n\n"
"Select NO, if you want to continue the installation without updating "
"the CMSScan and CMSEdit utilties. "
))
(set #ask-cmsmod
(cat "\nSelect the disk or drawer the 'CMSScan' program is placed in. "
))
(set #ask-cmsmod-help
(cat "You should now select the drawer the 'CMSScan' and 'CMSEdit' application program is placed in. "
"Usually the program is placed in the Studio drawer and thus the Studio drawer "
"should be selected.\n\n"
"The programs can be found on the second floppy disk, if Studio was "
"originaly installed on a floppy disk.\n\n"
@askdir-help
))
(set #nocmspro
(cat "\nSorry, I can't find the \"CMSScan\" program. I tried to access %s. "
"Please check the drawer and program name try installing again. "
))
(set #ask-prefs
(cat "\nIn which disk or drawer are the Studio printer preferences program(s) installed?"
))
(set #ask-prefs-help
(cat "\nThis section lets you choose in which drawer or on which disk the "
"Studio printer driver preferences programs (DeskPref, ...) are installed. "
"These are normally placed in the \"sys:prefs\" directory of your system "
"disk.\n\n"
@askdir-help
))
(set #nodesk
(cat "If found the DeskDriver printer driver on your system. It seems you used "
"the DeskDriver for your Deskjet so far. Please note that with this "
"update Deskjet 6xx/1600 users should use the DeskDriver4C with DeskPref4C.\n\n"
"Shall I remove the old DeskDriver and DeskPref program before installing "
"the new DeskDriver4C driver?"
))
(set #nodeskhelp
(cat "When selecting no, the Studio program will be add the new DeskDriver4C "
"to your system without deleting the DeskDriver.\n\n"
"When selecting yes, the old DeskDriver/DeskPref programs are removed "
"from your system before installing the new driver software for your Deskjet 6xx\n\n"
))
(set #delenv
(cat "Can I overwrite your old driver settings? I want to overwrite your settings in "
"order to setup the driver for your printer.\n\n"
"Note: you can keep your old driver settings if you like. Use the Preset "
"menu of the preferences program to change the settings to the default "
"settings anytime later."
))
(set #delenvhelp
(cat "The installation program wants to setup the default settings for your printer. "
"In order to do so, your old settings have to be deleted. You can skip overwriting the driver "
"settings and setup the driver later for your printer using the Preset menu "
"of the drivers prefences program."
))
(set #sdelenv
(cat "Can I delete the old settings of your Studio printing program? I want to overwrite your settings in "
"order to setup Studio for your printer.\n\n"
"Note: you can keep your old Studio printing program settings if you like. Use the \"Reset To Default\" "
"menu item of the printing program to change the settings anytime later if required. "
))
(set #sdelenvhelp
(cat "The installation program wants to setup the default settings for your printer. "
"In order to do so, your old settings have to be deleted. You can skip overwriting the Studio "
"settings and setup the printing program later for your printer using the \"Reset To Default\" menu item "
"of the Studio printing program."
))
(set #mydisk
(cat "Please insert the disk named\n\n\"StudioDisk_%ld\"\n\nin any drive."
))
(procedure Meter
(
(set accum (+ accum addm))
(complete (/ (* accum 100) total))
))
(complete 0)
;(message #welcome-pirate)
(set total 0)
(set accum 0)
(set addm 0)
(set firstdisk "")
(if (< (/ (getversion) 65536) 37)
(abort #bad-kick)
)
(if (= (exists "StudioDisk_1:VER") 1)
(
(set vernum (getversion "StudioDisk_1:VER"))
(set ver (/ vernum 65536))
(set rev (- vernum (* ver 65536) ) )
(if (OR (> ver 2) (> rev 10))
(
(abort (#bad-version ver rev))
))
))
(complete 1)
(set studio (askchoice (prompt #w-studio)
(help #w-studio-help)
(choices #w-studio-choices1 #w-studio-choices2 #w-studio-choices3 #w-studio-choices4 #w-studio-choices5 )
(default 0)
))
(working #waitmsg)
(set total 50)
(if (> studio 0)
(
(set total 100)
))
(set @default-dest "")
(copyfiles (source "StudioDisk_1:lx")
(dest "RAM:")
(nogauge)
)
(set exerr (run "RAM:lx n"))
(if (> exerr 0)
(
(abort (#abortunpack "-none-"))
))
(set addm 5)
(Meter)
(set studiopath (getenv "StudioPath"))
(set found 1)
(if (> (strlen studiopath) 1)
(
(if (= (substr studiopath 0 1) "\"")
(
(set studiopath (substr studiopath 1 (- (strlen studiopath) 2)))
))
(if (= (exists studiopath) 1)
(
(if (= (fileonly studiopath) "Studio")
(
(set found 2)
(if (askbool (prompt (#foundstudio (pathonly studiopath)))
(choices "Yes, update" "No, other drawer")
(help (#foundstudiohelp ))
(default 1))
(
(set found 0)
))
))
))
))
(set addm 5)
(Meter)
(if (> found 0)
(
(if (= found 1)
(
(set studiopath (getassign "WORK" "d"))
(if (= studiopath "")
(
(set studiopath (getassign "DH0" "d"))
(if (= studiopath "")
(
(set studiopath (getassign "DH2" "d"))
(if (= studiopath "")
(
(set studiopath "SYS:")
))
))
))
(set studiopath (tackon studiopath "Studio"))
))
(set studiopath (askdir (prompt #ask-studiomod)
(help #ask-studiomod-help)
(default (pathonly (studiopath)))
))
(set studiopath (tackon studiopath "Studio"))
(if (<> (exists studiopath) 1)
(
(abort (#nostudiopro studiopath))
))
(textfile (dest "Env:StudioPath")
(append (cat "\"" studiopath "\"")) )
(textfile (dest "Envarc:StudioPath")
(append (cat "\"" studiopath "\"")) )
))
(set addm 5)
(Meter)
(working #waitmsg)
(makeassign "STUDIOPARENT" (pathonly (studiopath)))
(set exerr (run (cat "RAM:lx x \"Studio/Studio.pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack "Studio/Studio.pkd"))
))
(set addm 20)
(Meter)
(makeassign "STUDIOPARENT" (tackon (pathonly (studiopath)) "Studio_Output"))
(if (= (exists "STUDIOPARENT:CanonBJC800.output") 1)
(
(set exerr (run (cat "RAM:lx x \"Output/CanonBJC800.pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack "Output/CanonBJC800.pkd"))
))
))
(if (= (exists "STUDIOPARENT:Fargo_Primera.output") 1)
(
(set exerr (run (cat "RAM:lx x \"Output/Fargo_Primera.pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack "Output/Fargo_Primera.pkd"))
))
))
(if (= (exists "STUDIOPARENT:Deskjet8xx.output") 1)
(
(set exerr (run (cat "RAM:lx x \"Output/Deskjet8xx.pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack "Output/Deskjet8xx.pkd"))
))
))
(if (= (exists "STUDIOPARENT:Deskjet6xx.output") 1)
(
(set exerr (run (cat "RAM:lx x \"Output/Deskjet6xx.pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack "Output/Deskjet6xx.pkd"))
))
))
(if (= (exists "STUDIOPARENT:Deskjet1600.output") 1)
(
(set exerr (run (cat "RAM:lx x \"Output/Deskjet1600.pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack "Output/Deskjet1600.pkd"))
))
))
(if (= (exists "STUDIOPARENT:CanonBJC610.output") 1)
(
(set exerr (run (cat "RAM:lx x \"Output/CanonBJC610.pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack "Output/CanonBJC610.pkd"))
))
))
(if (= (exists "STUDIOPARENT:PCL_5C.output") 1)
(
(set exerr (run (cat "RAM:lx x \"Output/pcl_5c.pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack "Output/PCL_5C.pkd"))
))
))
(set addm 5)
(Meter)
(set cmspath (tackon (pathonly studiopath) "CMSScan"))
(set found 1)
(if (<> (exists cmspath) 1)
(
(if (askbool (prompt (#updatescan (pathonly cmspath)))
(choices "Yes, update CMSScan" "No, continue")
(help (#foundstudiohelp ))
(default 1))
(
(set found 1)
(set cmspath (askdir (prompt #ask-cmsmod)
(help #ask-cmsmod-help)
(default (pathonly (cmspath))))
)
(set cmspath (tackon cmspath "CMSScan"))
(if (<> (exists cmspath) 1)
(
(abort (#nocmspro cmspath))
))
)
(
(set found 0)
))
))
(if (> found 0)
(
(working #waitmsg)
(makeassign "STUDIOPARENT" (pathonly (cmspath)))
(set exerr (run (cat "RAM:lx x \"Studio/Scan.pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack "Studio/Scan.pkd"))
))
))
(set addm 5)
(Meter)
(makeassign "STUDIOPARENT" "Devs:printers")
(if (= (exists "STUDIOPARENT:CanonBJ-EC") 1)
(
(set exerr (run (cat "RAM:lx x \"Drivers/CanonBJEC.pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack "Drivers/CanonBJEC.pkd"))
))
))
(if (= (exists "STUDIOPARENT:DeskDriver") 1)
(
(set exerr (run (cat "RAM:lx x \"Drivers/DeskDriver.pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack "Drivers/DeskDriver.pkd"))
))
))
(if (= (exists "STUDIOPARENT:DeskDriver4C") 1)
(
(set exerr (run (cat "RAM:lx x \"Drivers/DeskDriver4C.pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack "Drivers/DeskDriver4C.pkd"))
))
))
(if (= (exists "STUDIOPARENT:LaserDriver") 1)
(
(set exerr (run (cat "RAM:lx x \"Drivers/LaserDriver.pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack "Drivers/LaserDriver.pkd"))
))
))
(set prefdisk ("SYS:Prefs"))
(if (exists "sys:preferences")
(
(set prefdisk ("SYS:Preferences"))
))
(if (exists "SYS:Prefs")
(
(set prefdisk ("SYS:Prefs"))
))
(set prefdisk (askdir (prompt #ask-prefs)
(help #ask-prefs-help)
(default prefdisk))
)
(set addm 3)
(Meter)
(working #waitmsg)
(if (= (exists prefdisk) 2)
(
(makeassign "STUDIOPARENT" prefdisk)
(if (= (exists "STUDIOPARENT:DeskPref4C") 1)
(
(set exerr (run (cat "RAM:lx x \"Prefs/DeskPref4C.pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack "Prefs/DeskPref4C.pkd"))
))
))
(if (= (exists "STUDIOPARENT:CanonBJECPref") 1)
(
(set exerr (run (cat "RAM:lx x \"Prefs/CanonBJECPref.pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack "Prefs/CanonBJECPref.pkd"))
))
))
))
; BJC610
(if (= studio 1)
(
(set drivername "CanonBJEC")
(set prefname "prefs/CanonBJECPref")
(set envname "CanonBJECPref")
(set presetname "DriverPresets/CanonBJC610")
(set studiodefault "CanonBJC610")
(set soutput "Output/CanonBJC610")
(set sprofile "Profiles/CanonBJC610")
(makeassign "STUDIOPARENT" (tackon (pathonly (studiopath)) "Studio_Profiles"))
(askdisk (prompt (#mydisk 3))
(help @askdisk-help)
(dest "StudioDisk_3")
;(assigns)
)
(working #waitmsg)
(set exerr (run (cat "RAM:lx x \"StudioDisk_3:Profiles/CanonBJC600.pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack (cat sprofile ".pkd")))
))
))
; DJ 6xx
(if (= studio 2)
(
(if (= (exists "devs:printers/DeskDriver") 1)
(
(if (<> (exists "devs:printers/DeskDriver4C") 1)
(
(if (NOT (askbool (prompt (#nodesk))
(choices "No, don't delete" "Yes, delete before update")
(help (#nodeskhelp))
(default 1)))
(
(working #waitmsg)
(delete "Devs:printers/DeskDriver")
(if (= (exists (tackon prefdisk "DeskPref") 1))
(
(delete (tackon prefdisk "DeskPref"))
))
))
))
))
(set drivername "DeskDriver4C")
(set prefname "prefs/DeskPref4C")
(set envname "DeskPref4C")
(set studiodefault "Deskjet_6xx")
(set presetname "DriverPresets/dj6xx")
(set soutput "Output/Deskjet6xx")
(set sprofile "Profiles/Deskjet6xx_8xx")
))
; DJ 8xx
(if (= studio 3)
(
(set drivername "DeskDriver4C")
(set prefname "prefs/DeskPref4C")
(set envname "DeskPref4C")
(set studiodefault "Deskjet_8xx")
(set presetname "DriverPresets/dj8xx")
(set soutput "Output/Deskjet8xx")
(set sprofile "Profiles/Deskjet6xx_8xx")
))
; DJ 1600
(if (= studio 4)
(
(set drivername "DeskDriver4C")
(set prefname "prefs/DeskPref4C")
(set envname "DeskPref4C")
(set studiodefault "Deskjet_1600")
(set presetname "DriverPresets/DJ16004C")
(set soutput "Output/Deskjet1600")
(set sprofile "Profiles/Deskjet6xx_8xx")
))
(if (> studio 0)
(
(set addm 10)
(Meter)
(makeassign "STUDIOPARENT" "Devs:Printers")
(set exerr (run (cat "RAM:lx x drivers/" drivername ".pkd \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack (tackon "Drivers" drivername)))
))
(makeassign "STUDIOPARENT" prefdisk)
(set exerr (run (cat "RAM:lx x " prefname ".pkd \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack prefname))
))
(set addm 10)
(Meter)
(set delenv 1)
(if (= (exists (cat "ENV:" envname)) 1)
(
(if (NOT (askbool (prompt (#delenv))
(choices "Yes, overwrite" "No, don't delete")
(help (#delenvhelp))
(default 1)))
(
(set delenv 0)
))
))
(if (> delenv 0)
(
(if (exists "ENV:")
(
(delete (cat "ENV:" envname))
))
(if (exists "ENVARC:")
(
(delete (cat "ENVARC:" envname))
))
(if (<> presetname "")
(
(if (= (exists presetname) 1)
(
(copyfiles (source presetname)
(dest "ENV:")
(newname envname)
(nogauge)
)
)
(
(if (= (exists (cat presetname ".pkd")) 1)
(
(set exerr (run (cat "RAM:lx x " presetname ".pkd ENV:")))
(if (> exerr 0)
(
(abort (#abortunpack (cat presetname ".pkd")))
))
(if (exists (cat "ENV:" envname))
(
(delete (cat "ENV:" envname))
))
(rename (cat "ENV:" (fileonly presetname)) (cat "ENV:" envname))
))
))
(if (= (exists (cat "ENV:" envname)) 1)
(
(if (exists "ENVARC:")
(
(copyfiles (source (cat "ENV:" envname))
(dest "ENVARC:")
(newname envname)
(nogauge)
)
))
))
))
))
(set addm 10)
(Meter)
(working #waitmsg)
(makeassign "STUDIOPARENT" (tackon (pathonly (studiopath)) "Studio_Prefs"))
(set exerr (run (cat "RAM:lx x \"" (tackon "StudioPresets" (cat studiodefault ".pkd\"")) "\"T:\"")))
(if (> exerr 0)
(
(abort (#abortunpack (tackon "StudioPresets" (cat studiodefault ".pkd"))))
))
(copyfiles (source (cat "T:" studiodefault ".prefs"))
(dest "STUDIOPARENT:")
(newname "DefaultSettings")
(nogauge)
)
(set addm 10)
(Meter)
(if (exists "STUDIOPARENT:Studio.prefs")
(
(if (askbool (prompt (#sdelenv))
(choices "Yes, delete" "No, don't delete")
(help (#sdelenvhelp))
(default 1))
(
(delete "STUDIOPARENT:Studio.prefs")
))
))
(working #waitmsg)
(makeassign "STUDIOPARENT" (tackon (pathonly (studiopath)) "Studio_Output"))
(set exerr (run (cat "RAM:lx x \"" soutput ".pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack (cat soutput ".pkd")))
))
(set addm 5)
(Meter)
(makeassign "STUDIOPARENT" (tackon (pathonly (studiopath)) "Studio_Profiles"))
(set exerr (run (cat "RAM:lx x \"" sprofile ".pkd\" \"STUDIOPARENT:\"")))
(if (> exerr 0)
(
(abort (#abortunpack (cat sprofile ".pkd")))
))
))
(run "RAM:lx n")
(delete "RAM:lx")
(makeassign "STUDIOPARENT")
(complete 100)