home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1997 #4 / amigaacscoverdisc1997-041997.iso / utilities / patches / studiov2.13_part_ii / install-studioupdate < prev    next >
Text File  |  1996-10-07  |  21KB  |  733 lines

  1. ; $VER: StudioUpdate 2.13 (07.10.96)
  2. ; Copyright (C)1992-96 Wolf Faust
  3.  
  4. (complete 0)
  5. (delopts "oknodelete" "force" "askuser")
  6.  
  7. (set #waitmsg
  8. (cat "\n\n\n\nWorking. Please wait..."
  9. ))
  10. (set #bad-kick
  11. (cat    "\nYour system software is very old. "
  12.     "You must use at least Kickstart 2.04 for all Studio programs. "
  13. ))
  14. (set #bad-version
  15. (cat    "This update will only update Studio V2.12 and older. "
  16.     "Your Studio disks are version %ld.%ld. Running this update doesn't make sense. "
  17. ))
  18. (set #bad-version2
  19. (cat    "This update will only update Studio V2.13 and older. "
  20.     "Your installed Studio program has version %ld.%ld. "
  21.     "I will skip updating your Studio printing program. "
  22. ))
  23. (set #w-studio
  24. (cat "Select the action(s) to perform."
  25. ))
  26. (set #w-studio-help
  27. (cat "This disk comes with new and additional software for some printers.\n"
  28.     "You can update your current used software.\n"
  29.     "Or you can update the software and add the additional printer software.\n\n"
  30.     @askchoice-help
  31. ))
  32. (set #w-studio-choices1
  33. (cat "Update Studio printing program to V2.13"
  34. ))
  35. (set #w-studio-choices2
  36. (cat "And add new Canon BJC 610 software"
  37. ))
  38. (set #w-studio-choices3
  39. (cat "And add new Canon BJC 4100 software"
  40. ))
  41. (set #abortunpack
  42. (cat "\nError occured while running the installation decompression program. "
  43.     "The error occured during decompressing of the file:\n\n\"%s\"\n\n"
  44. ))
  45. (set #foundstudio
  46. (cat "\nI found your Studio printing program. Can I update the program in the drawer:\n\n%s\n\n"
  47. ))
  48. (set #foundstudiohelp
  49. (cat "When selecting yes, the Studio program will be updated in the location found.\n\n"
  50.     "When selecting no, you will be asked for a Studio filename you want to update\n\n"
  51. ))
  52. (set #ask-studiomod
  53. (cat "\nSelect the disk or drawer the 'Studio' application program is placed in. "
  54. ))
  55. (set #ask-studiomod-help
  56. (cat "You should now select the drawer the 'Studio' application program is placed in. "
  57.     "Usually the program is placed in the Studio drawer and thus the Studio drawer "
  58.     "should be selected.\n\n"
  59.     @askdir-help
  60. ))
  61. (set #nostudiopro
  62. (cat "\nSorry, I can't find the \"Studio\" program. I tried to access %s. "
  63.     "Please check the drawer and program name try installing again. "
  64. ))
  65. (set #ask-prefs
  66. (cat "\nIn which disk or drawer are the Studio printer preferences program(s) installed?"
  67. ))
  68. (set #ask-prefs-help
  69. (cat "\nThis section lets you choose in which drawer or on which disk the "
  70.     "Studio printer driver preferences programs (CanonBJECPref, ...) are installed. "
  71.     "These are normally placed in the \"sys:prefs\" directory of your system "
  72.     "disk.\n\n"
  73.     @askdir-help
  74. ))
  75. (set #delenv
  76. (cat "Can I overwrite your old driver settings? I want to overwrite your settings in "
  77.     "order to setup the driver for your printer.\n\n"
  78.     "Note: you can keep your old driver settings if you like. Use the Preset "
  79.     "menu of the preferences program to change the settings to the default "
  80.     "settings anytime later."
  81. ))
  82. (set #delenvhelp
  83. (cat "The installation program wants to setup the default settings for your printer. "
  84.     "In order to do so, your old settings have to be deleted. You can skip overwriting the driver "
  85.     "settings and setup the driver later for your printer using the Preset menu "
  86.     "of the drivers prefences program."
  87. ))
  88. (set #sdelenv
  89. (cat "Can I delete the old settings of your Studio printing program? I want to overwrite your settings in "
  90.     "order to setup Studio for your printer.\n\n"
  91.     "Note: you can keep your old Studio printing program settings if you like. Use the \"Reset To Default\" "
  92.     "menu item of the printing program to change the settings anytime later if required. "
  93. ))
  94. (set #sdelenvhelp
  95. (cat "The installation program wants to setup the default settings for your printer. "
  96.     "In order to do so, your old settings have to be deleted. You can skip overwriting the Studio "
  97.     "settings and setup the printing program later for your printer using the \"Reset To Default\" menu item "
  98.     "of the Studio printing program."
  99. ))
  100. (set #setupmsg
  101. (cat "\nA new Setup-BJL program was installed for you in:\n\n%s\n "
  102. ))
  103. (set #mydisk
  104. (cat "Please insert the disk named\n\n\"StudioDisk_%ld\"\n\nin any drive."
  105. ))
  106. (set #installed
  107. (cat "\n\nA new driver named \"%s\" has been installed for your printer. "
  108.     "The driver is controlled by the installed \"%s\" preferences "
  109.     "program.\n\n"
  110. ))
  111. (set #yesupdate
  112. (cat "Yes, update"
  113. ))
  114. (set #nodrawer
  115. (cat "No, select new drawer"
  116. ))
  117. (set #nochange
  118. (cat "No, don't change"
  119. ))
  120. (set #updatescan 
  121. (cat "\nI can't find the CMSScan program in your Studio drawer.\n\n"
  122.     "Select YES, if you want to update the CMSScan and CMSEdit program. "
  123.     "You will be asked for a drawer containing the CMSScan program.\n\n"
  124.     "Select NO, if you want to continue the installation without updating "
  125.     "the CMSScan and CMSEdit utilties. "
  126. ))
  127. (set #ask-cmsmod
  128. (cat "\nSelect the disk or drawer the 'CMSScan' program is placed in. "
  129. ))
  130. (set #ask-cmsmod-help
  131. (cat "You should now select the drawer the 'CMSScan' and 'CMSEdit' application program is placed in. "
  132.     "Usually the program is placed in the Studio drawer and thus the Studio drawer "
  133.     "should be selected.\n\n"
  134.     "The programs can be found on the second floppy disk, if Studio was "
  135.     "originaly installed on a floppy disk.\n\n"
  136.     @askdir-help
  137. ))
  138. (set #nocmspro
  139. (cat "\nSorry, I can't find the \"CMSScan\" program. I tried to access %s. "
  140.     "Please check the drawer and program name try installing again. "
  141. ))
  142. ;--------------
  143. ;*** German
  144. (if (= @language "deutsch")
  145. (
  146.     (set #waitmsg
  147.     (cat "\n\n\n\nIch arbeite! Bitte warten..."
  148.     ))
  149.     (set #bad-kick
  150.     (cat    "\nIhre System-Software ist sehr alt. "
  151.         "Sie brauchen mindestens Kickstart 2.04 für alle Studio-Programme."
  152.     ))
  153.     (set #bad-version
  154.     (cat    "Dieses Update benötigt Studio Version 2.12 oder älter. "
  155.         "Ihre Studio Originaldisketten haben Version %ld.%ld. Es hat daher "
  156.         "keinen Sinn, ein Update durchzuführen. "
  157.     ))
  158.     (set #bad-version2
  159.     (cat    "Dieses Update funktioniert nur mit Studio V2.13 und älter. "
  160.         "Ihr installiertes Programm hat bereits Version %ld.%ld. "
  161.         "Ich werde daher nicht das Programm updaten. "
  162.     ))
  163.     (set #w-studio
  164.     (cat "Welche Studio-Software wollen Sie updaten?"
  165.     ))
  166.     (set #w-studio-help
  167.     (cat "\nDieses Studio Update enthält neben einem generellen Update der vorhandenen "
  168.         "Software auch zusätzliche neue Treiber Software. Bitte wählen Sie, ob "
  169.         "Sie einfach nur vorhandenes Updaten wollen, oder ob Sie zusätzlich noch "
  170.         "weitere Software installieren wollen.\n\n"
  171.         @askoptions-help
  172.     ))
  173.     (set #w-studio-choices1
  174.     (cat "Studio Druckprogramm updaten."
  175.     ))
  176.     (set #w-studio-choices2
  177.     (cat "Updaten und Canon BJC 610 Software installieren"
  178.     ))
  179.     (set #w-studio-choices3
  180.     (cat "Updaten und Canon BJC 4100 Software installieren"
  181.     ))
  182.     (set #abortunpack
  183.     (cat "\nEin Fehler trat beim Entpacken/Schreiben einer Datei auf!\n"
  184.         "Das zu entpackende Archiv lautete:\n\n\"%s\"\n\n"
  185.     ))
  186.     (set #foundstudio
  187.     (cat "\nIch habe Ihr installiertes Studio Druckprogramm gefunden. Kann ich das Studio Programm in der folgenden Schublade updaten:\n\n%s\n\n"
  188.     ))
  189.     (set #foundstudiohelp
  190.     (cat "Wählen Sie ja, dann wird das Studio Programm in der angegebenen Schublade erneuert.\n\n"
  191.         "Wählen Sie Nein, erscheint ein Dateiauswahlfenster und Sie können eine "
  192.         "andere Schublade mit dem Studio Programm angeben.\n\n"
  193.     ))
  194.     (set #ask-studiomod
  195.     (cat "\nBitte wählen Sie die Schublade, in dem sich das 'Studio'-Programm befindet."
  196.     ))
  197.     (set #ask-studiomod-help
  198.     (cat @askdir-help
  199.     ))
  200.     (set #nostudiopro
  201.     (cat "Ich kann das \"Studio\" Programm nicht unter\n\n'%s'\n\nfinden. "
  202.         "Bitte prüfen Sie die angegebenen Dateinamen und versuchen Sie die Installation erneut."
  203.     ))
  204.     (set #ask-cmsmod
  205.     (cat "\nBitte wählen Sie die Schublade, in dem sich das 'CMSScan'-Programm befindet."
  206.     ))
  207.     (set #ask-cmsmod-help
  208.     (cat "Bitte wählen Sie die Schublade, in dem sich das 'CMSScan'-Programm befindet. "
  209.         "Das Programm befindet sich normal in der Studio Schublade.\n"
  210.         "Wurde Studio auf Disketten installiert, finden Sie CMSScan "
  211.         "auf der zweiten installierten Studio Diskette.\n\n"
  212.         @askdir-help
  213.     ))
  214.     (set #ask-prefs
  215.     (cat "\nIn welcher Schublade wurden die Studio Treiber-Voreinsteller installiert?"
  216.     ))
  217.     (set #ask-prefs-help
  218.     (cat "\nNormal installiert Studio die Voreinsteller DeskPref, LaserPref, PinPref, CanonBJECPref usw. "
  219.         "in die SYS:Prefs Schublade. Sollten Sie diese Programme woanders installiert haben, "
  220.         "geben Sie bitte die entsprechende Schublade an, damit die Programme upgedated werden können.\n\n"
  221.         @askdir-help
  222.     ))
  223.     (set #delenv
  224.     (cat "Kann ich Ihre alten Treibereinstellungen löschen, damit ich den Treiber "
  225.         "für Ihren Drucker neu konfigurieren kann?\n\n"
  226.         "Sie können Ihre Einstellungen mit 'Nein' aber auch behalten und jederzeit "
  227.         "später mit dem Preset Menü von CanonBJECPref den Treiber neu einstellen."
  228.     ))
  229.     (set #delenvhelp
  230.     (cat "Das Installationsprogramm muß Ihre alten Treibereinstellungen löschen, "
  231.         "um die neuen Standardeinstellungen für Ihren Drucker zu aktivieren. "
  232.         "Sie können darauf aber auch verzichten, und später das Preset-Menü "
  233.         "von CanonBJECPref zum Einstellen benutzen."
  234.     ))
  235.     (set #sdelenv
  236.     (cat "Kann ich Ihre Einstellungen des Studio Druckprogramms löschen, damit ich das Programm "
  237.         "für Ihren Drucker neu konfigurieren kann?\n\n"
  238.         "Sie können Ihre Einstellungen mit 'Nein' aber auch behalten und jederzeit "
  239.         "später mit dem 'Reset To Default' Menüpunkt die Einstellungen vornehmen."
  240.     ))
  241.     (set #sdelenvhelp
  242.     (cat "Das Installationsprogramm muß Ihre alten Studio Einstellungen löschen, "
  243.         "um die neuen Standardeinstellungen für Ihren Drucker zu aktivieren. "
  244.         "Sie können darauf aber auch verzichten, und später das Menü "
  245.         "von Studio zum Einstellen benutzen."
  246.     ))
  247.     (set #setupmsg
  248.     (cat "\nEin neues Setup-BJL Programm wurde für Sie installiert in der Schublade:\n\n%s\n "
  249.     ))
  250.     (set #mydisk
  251.     (cat "Bitte legen Sie die Diskette\n\n\"StudioDisk_%ld\"\n\nin ein beliebiges Laufwerk."
  252.     ))
  253.     (set #installed
  254.     (cat "\n\nEin neuer Treiber namens \"%s\" wurde für den Canon BJC Drucker installiert. "
  255.         "Zusätzlich wurde das Voreinsteller-Programm \"%s\"  installiert.\n\n"
  256.     ))
  257.     (set #yesupdate
  258.     (cat "Ja, updaten"
  259.     ))
  260.     (set #nodrawer
  261.     (cat "Nein, andere Schublade"
  262.     ))
  263.     (set #nochange
  264.     (cat "Nein, nicht ändern"
  265.     ))
  266.     (set #insdriv
  267.     (cat "Der CanonBJ-EC Workbench Druckertreiber wurde für Ihren Canon Drucker mit dem CanonBJECPref-Programm "
  268.         "installiert."
  269.     ))
  270.     (set #updatescan 
  271.     (cat "\nIch kann das CMSScan Programm nicht in Ihrer angegebenen Studio Schublade finden.\n\n"
  272.         "Wollen Sie CMSScan und CMSEdit Updaten?"
  273.     ))
  274.     (set #ask-cmsmod
  275.     (cat "\nBitte wählen Sie die Schublade, in dem sich das 'CMSScan'-Programm befindet."
  276.     ))
  277.     (set #ask-cmsmod-help
  278.     (cat "Bitte wählen Sie die Schublade, in dem sich das 'CMSScan'-Programm befindet. "
  279.         "Das Programm befindet sich normal in der Studio Schublade.\n"
  280.         "Wurde Studio auf Disketten installiert, finden Sie CMSScan "
  281.         "auf der zweiten installierten Studio Diskette.\n\n"
  282.         @askdir-help
  283.     ))
  284.     (set #nocmspro
  285.     (cat "Ich kann das \"CMSScan\" Programm nicht unter\n\n'%s'\n\nfinden. "
  286.         "Bitte prüfen Sie die angegebenen Dateinamen und versuchen Sie die Installation erneut."
  287.     ))
  288. ))
  289.  
  290.  
  291. (procedure Meter
  292. (
  293.     (set accum    (+ accum addm))
  294.     (complete (/ (* accum 100) total))
  295. ))
  296.  
  297. (complete 0)
  298. ;(message #welcome-pirate)
  299.  
  300. (set total    0)
  301. (set accum    0)
  302. (set addm    0)
  303. (set firstdisk "")
  304. (if (< (/ (getversion) 65536) 37)
  305.     (abort #bad-kick)
  306. )
  307. (complete 1)
  308. (set studio (askchoice (prompt #w-studio)
  309.     (help #w-studio-help)
  310.     (choices #w-studio-choices1 #w-studio-choices2 #w-studio-choices3 )
  311.     (default 0)
  312. ))
  313. (working #waitmsg)
  314. (set total 50)
  315. (if (> studio 0)
  316. (
  317.     (set total 100)
  318. ))
  319. (set @default-dest "")
  320. (set verorg 2)
  321. (set revorg 0)
  322. (if (= (exists "StudioDisk_1:VER") 1)
  323. (
  324.     (set vernum (getversion "StudioDisk_1:VER"))
  325.     (set verorg (/ vernum 65536))
  326.     (set revorg (- vernum (* verorg 65536) ) )
  327.     (if (OR (> verorg 2) (> revorg 12))
  328.     (
  329.         (abort (#bad-version verorg revorg))
  330.     ))
  331. ))
  332. (copyfiles (source "StudioDisk_1:lx")
  333.     (dest "RAM:")
  334.     (nogauge)
  335. )
  336. (set exerr (run "RAM:lx n"))
  337. (if (> exerr 0)
  338. (
  339.     (abort (#abortunpack "-none-"))
  340. ))
  341.  
  342. (set addm 5)
  343. (Meter)
  344. (set studiopath "");
  345. (if (= (exists "ENV:STUDIOPATH") 1)
  346. (
  347.     (set studiopath (getenv "StudioPath"))
  348. ))
  349. (set found 1)
  350. (if (> (strlen studiopath) 1)
  351. (
  352.     (if (= (substr studiopath 0 1)  "\"")
  353.     (
  354.         (set studiopath (substr studiopath 1 (- (strlen studiopath) 2)))
  355.     ))
  356.     (if (= (exists studiopath) 1)
  357.     (
  358.         (if (= (fileonly studiopath) "Studio")
  359.         (
  360.             (set found 2)
  361.             (if (askbool (prompt (#foundstudio (pathonly studiopath)))
  362.                 (choices #yesupdate #nodrawer)
  363.                 (help (#foundstudiohelp ))
  364.                 (default 1))
  365.             (
  366.                 (set found 0)
  367.             ))
  368.         ))
  369.     ))
  370. ))
  371. (set addm 5)
  372. (Meter)
  373. (if (> found 0)
  374. (
  375.     (if (= found 1)
  376.     (
  377.         (set studiopath (getassign "WORK" "d"))
  378.         (if (= studiopath "")
  379.         (
  380.             (set studiopath (getassign "DH0" "d"))
  381.             (if (= studiopath "")
  382.             (
  383.                 (set studiopath (getassign "DH2" "d"))
  384.                 (if (= studiopath "")
  385.                 (
  386.                     (set studiopath "SYS:")
  387.                 ))
  388.             ))
  389.         ))
  390.         (set studiopath (tackon studiopath "Studio")) 
  391.     ))
  392.     (set studiopath  (askdir (prompt #ask-studiomod)
  393.         (help #ask-studiomod-help)
  394.         (default (pathonly (studiopath)))
  395.     ))
  396.     (set studiopath (tackon studiopath "Studio"))
  397.     (if (<> (exists studiopath) 1)
  398.     (
  399.         (abort (#nostudiopro studiopath))
  400.     ))
  401.     (textfile   (dest "Env:StudioPath")
  402.         (append (cat "\"" studiopath "\"")) )
  403.     (textfile   (dest "Envarc:StudioPath")
  404.         (append (cat "\"" studiopath "\"")) )
  405. ))
  406. (set addm    5)
  407. (Meter)
  408. (working #waitmsg)
  409. (makeassign "STUDIOPARENT" (pathonly (studiopath)))
  410. (set ver 0)
  411. (set rev 0)
  412. (if (= (exists "STUDIOPARENT:Studio") 1)
  413. (
  414.     (set vernum (getversion "STUDIOPARENT:Studio"))
  415.     (set ver (/ vernum 65536))
  416.     (set rev (- vernum (* ver 65536) ) )
  417. ))
  418. (set addm    20)
  419. (Meter)
  420. (if (OR (> ver 2) (> rev 13))
  421. (
  422.     (message (#bad-version2 ver rev))
  423. )
  424. (
  425.     (set exerr (run (cat "RAM:lx x \"Studio/Studio.pkd\" \"STUDIOPARENT:\"")))
  426.     (if (> exerr 0)
  427.     (
  428.         (abort (#abortunpack "Studio/Studio.pkd"))
  429.     ))
  430.     (makeassign "STUDIOPARENT" (tackon (pathonly (studiopath)) "Studio_Output"))
  431.     (if (= (exists "STUDIOPARENT:CanonBJC800.output") 1)
  432.     (
  433.         (set exerr (run (cat "RAM:lx x \"Output/CanonBJC800.pkd\" \"STUDIOPARENT:\"")))
  434.         (if (> exerr 0)
  435.         (
  436.             (abort (#abortunpack "Output/CanonBJC800.pkd"))
  437.         ))
  438.     ))
  439.     (set cmspath (tackon (pathonly studiopath) "CMSScan"))
  440.     (set found 1)
  441.     (if (<> (exists cmspath) 1)
  442.     (
  443.         (if (askbool (prompt (#updatescan (pathonly cmspath)))
  444.             (choices "Yes, update CMSScan" "No, continue")
  445.             (help (#foundstudiohelp ))
  446.             (default 1))
  447.         (
  448.             (set found 1)
  449.             (set cmspath  (askdir (prompt #ask-cmsmod)
  450.                 (help #ask-cmsmod-help)
  451.                 (default (pathonly (cmspath))))
  452.             )
  453.             (set cmspath (tackon cmspath "CMSScan"))
  454.             (if (<> (exists cmspath) 1)
  455.             (
  456.                 (abort (#nocmspro cmspath))
  457.             ))
  458.         )
  459.         (
  460.             (set found 0)
  461.         ))
  462.     ))
  463.     (if (> found 0)
  464.     (
  465.         (working #waitmsg)
  466.         (makeassign "STUDIOPARENT" (pathonly (cmspath)))
  467.         (set exerr (run (cat "RAM:lx x \"Studio/Scan.pkd\" \"STUDIOPARENT:\"")))
  468.         (if (> exerr 0)
  469.         (
  470.             (abort (#abortunpack "Studio/Scan.pkd"))
  471.         ))
  472.     ))
  473. ))
  474. (working #waitmsg)
  475. (set addm    10)
  476. (Meter)
  477. (makeassign "STUDIOPARENT" "Devs:printers")
  478. (if (= (exists "STUDIOPARENT:CanonBJ-EC") 1)
  479. (
  480.     (set exerr (run (cat "RAM:lx x \"Drivers/CanonBJEC.pkd\" \"STUDIOPARENT:\"")))
  481.     (if (> exerr 0)
  482.     (
  483.         (abort (#abortunpack "Drivers/CanonBJEC.pkd"))
  484.     ))
  485. ))
  486. (set prefdisk ("SYS:Prefs"))
  487. (if (exists "sys:preferences")
  488. (
  489.     (set prefdisk ("SYS:Preferences"))
  490. ))
  491. (if (exists "SYS:Prefs")
  492. (
  493.     (set prefdisk ("SYS:Prefs"))
  494. ))
  495. (set prefdisk (askdir (prompt #ask-prefs)
  496.     (help #ask-prefs-help)
  497.     (default prefdisk))
  498. )
  499. (set addm    3)
  500. (Meter)
  501. (working #waitmsg)
  502. (if (= (exists prefdisk) 2)
  503. (
  504.     (makeassign "STUDIOPARENT" prefdisk)
  505.     (if (= (exists "STUDIOPARENT:CanonBJECPref") 1)
  506.     (
  507.         (set exerr (run (cat "RAM:lx x \"Prefs/CanonBJECPref.pkd\" \"STUDIOPARENT:\"")))
  508.         (if (> exerr 0)
  509.         (
  510.             (abort (#abortunpack "Prefs/CanonBJECPref.pkd"))
  511.         ))
  512.     ))
  513. ))
  514. ; BJC610
  515. (if (= studio 1)
  516. (
  517.     (set drivername "CanonBJEC")
  518.     (set prefname "prefs/CanonBJECPref")
  519.     (set setupname "")
  520.     (set envname "CanonBJECPref")
  521.     (set presetname "DriverPresets/CanonBJC610")
  522.     (set studiodefault "CanonBJC610")
  523.     (set soutput "Output/CanonBJC610")
  524.     (set sprofile "Profiles/CanonBJC610")
  525.     (makeassign "STUDIOPARENT" (tackon (pathonly (studiopath)) "Studio_Profiles"))
  526.     (askdisk (prompt (#mydisk 3))
  527.         (help @askdisk-help)
  528.         (dest "StudioDisk_3")
  529.     )
  530.     (working #waitmsg)
  531.     (if (= (exists "StudioDisk_3:Profiles/CanonBJC600.pkd") 1)
  532.     (
  533.         (set exerr (run (cat "RAM:lx x \"StudioDisk_3:Profiles/CanonBJC600.pkd\" \"STUDIOPARENT:\"")))
  534.         (if (> exerr 0)
  535.         (
  536.             (abort (#abortunpack (cat sprofile ".pkd")))
  537.         ))
  538.     )
  539.     (
  540.         (if (> revorg 9)   ; some V2.11 disks have a V2.10 string. So we have to check for >=V2.10. V2.10 can't reach this line so it's safe.
  541.         (
  542.             (askdisk (prompt (#mydisk 4))
  543.                 (help @askdisk-help)
  544.                 (dest "StudioDisk_4")
  545.             )
  546.             (working #waitmsg)
  547.             (if (= (exists "StudioDisk_4:Profiles/CanonBJC600.pkd") 1)
  548.             (
  549.                 (set exerr (run (cat "RAM:lx x \"StudioDisk_4:Profiles/CanonBJC600.pkd\" \"STUDIOPARENT:\"")))
  550.                 (if (> exerr 0)
  551.                 (
  552.                     (abort (#abortunpack (cat sprofile ".pkd")))
  553.                 ))
  554.             ))
  555.         ))
  556.     ))
  557. ))
  558. ; BJC4100
  559. (if (= studio 2)
  560. (
  561.     (set drivername "CanonBJEC")
  562.     (set prefname "prefs/CanonBJECPref")
  563.     (set setupname "prefs/SetupBJL-BJC4100")
  564.     (set envname "CanonBJECPref")
  565.     (set presetname "DriverPresets/CanonBJC4000")
  566.     (set studiodefault "CanonBJC4100")
  567.     (set soutput "Output/CanonBJC4100")
  568.     (set sprofile "Profiles/CanonBJC4100")
  569.     (makeassign "STUDIOPARENT" (tackon (pathonly (studiopath)) "Studio_Profiles"))
  570.     (askdisk (prompt (#mydisk 3))
  571.         (help @askdisk-help)
  572.         (dest "StudioDisk_3")
  573.     )
  574.     (working #waitmsg)
  575.     (if (= (exists "StudioDisk_3:Profiles/CanonBJC4000.pkd") 1)
  576.     (
  577.         (set exerr (run (cat "RAM:lx x \"StudioDisk_3:Profiles/CanonBJC4000.pkd\" \"STUDIOPARENT:\"")))
  578.         (if (> exerr 0)
  579.         (
  580.             (abort (#abortunpack (cat sprofile ".pkd")))
  581.         ))
  582.     )
  583.     (
  584.         (askdisk (prompt (#mydisk 4))
  585.             (help @askdisk-help)
  586.             (dest "StudioDisk_4")
  587.         )
  588.         (working #waitmsg)
  589.         (if (= (exists "StudioDisk_4:Profiles/CanonBJC4000.pkd") 1)
  590.         (
  591.             (set exerr (run (cat "RAM:lx x \"StudioDisk_4:Profiles/CanonBJC4000.pkd\" \"STUDIOPARENT:\"")))
  592.             (if (> exerr 0)
  593.             (
  594.                 (abort (#abortunpack (cat sprofile ".pkd")))
  595.             ))
  596.         ))
  597.     ))
  598. ))
  599. (if (> studio 0)
  600. (
  601.     (set addm 10)
  602.     (Meter)
  603.     (makeassign "STUDIOPARENT" "Devs:Printers")
  604.     (set exerr (run (cat "RAM:lx x drivers/" drivername ".pkd \"STUDIOPARENT:\"")))
  605.     (if (> exerr 0)
  606.     (
  607.         (abort (#abortunpack (tackon "Drivers" drivername)))
  608.     ))
  609.     (makeassign "STUDIOPARENT" prefdisk)
  610.     (set exerr (run (cat "RAM:lx x " prefname ".pkd \"STUDIOPARENT:\"")))
  611.     (if (> exerr 0)
  612.     (
  613.         (abort (#abortunpack prefname))
  614.     ))
  615.     (if (<> setupname "")
  616.     (
  617.         (set exerr (run (cat "RAM:lx x " setupname ".pkd \"STUDIOPARENT:\"")))
  618.         (if (> exerr 0)
  619.         (
  620.             (abort (#abortunpack prefname))
  621.         ))
  622.         (message (#setupmsg prefdisk))
  623.     ))
  624.     (set addm 10)
  625.     (Meter)
  626.     (set delenv 1)
  627.     (if (= (exists (cat "ENV:" envname)) 1)
  628.     (
  629.             (if (NOT (askbool (prompt (#delenv))
  630.                 (choices #yesupdate #nochange)
  631.                 (help (#delenvhelp))
  632.                 (default 1)))
  633.             (
  634.                 (set delenv 0)
  635.             ))
  636.     ))
  637.     (if (> delenv 0)
  638.     (
  639.         (if (exists "ENV:")
  640.         (
  641.             (delete (cat "ENV:" envname))
  642.         ))
  643.         (if (exists "ENVARC:")
  644.         (
  645.             (delete (cat "ENVARC:" envname))
  646.         ))
  647.         (if (<> presetname "")
  648.         (
  649.             (if (= (exists presetname) 1)
  650.             (
  651.                 (copyfiles (source presetname)
  652.                     (dest "ENV:")
  653.                     (newname envname)
  654.                     (nogauge)
  655.                 )
  656.             )
  657.             (
  658.                 (if (= (exists (cat presetname ".pkd")) 1)
  659.                 (
  660.                     (set exerr (run (cat "RAM:lx x " presetname ".pkd ENV:")))
  661.                     (if (> exerr 0)
  662.                     (
  663.                         (abort (#abortunpack (cat presetname ".pkd")))
  664.                     ))
  665.                     (if (exists (cat "ENV:" envname))
  666.                     (
  667.                         (delete (cat "ENV:" envname))
  668.                     ))
  669.                     (rename (cat "ENV:" (fileonly presetname)) (cat "ENV:" envname))
  670.                 ))
  671.             ))
  672.             (if (= (exists (cat "ENV:" envname)) 1)
  673.             (
  674.                 (if (exists "ENVARC:")
  675.                 (
  676.                     (copyfiles (source (cat "ENV:" envname))
  677.                         (dest "ENVARC:")
  678.                         (newname envname)
  679.                         (nogauge)
  680.                     )
  681.                 ))
  682.             ))
  683.         ))
  684.     ))
  685.     (set addm 10)
  686.     (Meter)
  687.     (working #waitmsg)
  688.     (makeassign "STUDIOPARENT" (tackon (pathonly (studiopath)) "Studio_Prefs"))
  689.     (set exerr (run (cat "RAM:lx x \"" (tackon "StudioPresets" (cat studiodefault ".pkd\"")) "\"T:\"")))
  690.     (if (> exerr 0)
  691.     (
  692.         (abort (#abortunpack (tackon "StudioPresets" (cat studiodefault ".pkd"))))
  693.     ))
  694.     (copyfiles (source (cat "T:" studiodefault ".prefs"))
  695.         (dest "STUDIOPARENT:")
  696.         (newname "DefaultSettings")
  697.         (nogauge)
  698.     )
  699.     (set addm    10)
  700.     (Meter)
  701.     (if (exists "STUDIOPARENT:Studio.prefs")
  702.     (
  703.         (if (askbool (prompt (#sdelenv))
  704.             (choices "Yes, delete" "No, don't delete")
  705.             (help (#sdelenvhelp))
  706.             (default 1))
  707.         (
  708.             (delete "STUDIOPARENT:Studio.prefs")
  709.         ))
  710.     ))
  711.     (working #waitmsg)
  712.     (makeassign "STUDIOPARENT" (tackon (pathonly (studiopath)) "Studio_Output"))
  713.     (set exerr (run (cat "RAM:lx x \"" soutput ".pkd\" \"STUDIOPARENT:\"")))
  714.     (if (> exerr 0)
  715.     (
  716.         (abort (#abortunpack (cat soutput ".pkd")))
  717.     ))
  718.     (set addm 5)
  719.     (Meter)
  720.     (makeassign "STUDIOPARENT" (tackon (pathonly (studiopath)) "Studio_Profiles"))
  721.     (set exerr (run (cat "RAM:lx x \"" sprofile ".pkd\" \"STUDIOPARENT:\"")))
  722.     (if (> exerr 0)
  723.     (
  724.         (abort (#abortunpack (cat sprofile ".pkd")))
  725.     ))
  726.     (message (#installed drivername (fileonly prefname)))
  727.  
  728. ))
  729. (run "RAM:lx n")
  730. (delete "RAM:lx")
  731. (makeassign "STUDIOPARENT")
  732. (complete 100)
  733.