home *** CD-ROM | disk | FTP | other *** search
- ; $VER: InstallPPaint 2.71
- ; Cloanto ® Personal Paint Installer Script
- ; Copyright (C) Cloanto Italia srl 1994
- ; PPaint, PWrite, C1-Text, PFM trademarks of Cloanto Italia srl
- ; ADPRO, DPaint, DeluxePaintIII, DPaintIV, DPaintV, PPage trademarks of respective owners
- ; Installer and Installer project icon Copyright (C) 1991-1993 Commodore-Amiga, Inc. All Rights Reserved
- ; Reproduced and distributed under license from Commodore
-
- (set k8u 0)
- (set k8t 1)
- (set k8w 3)
- (set k8v 4)
- (set k8x 5)
- (set k8z 6)
- (set k8y 2)
- (set k8s 0)
- (set k8o 1)
- (set k8p 2)
- (set k8q 3)
- (set k8r 4)
- (set k8n 5)
- (set k7b -1)
- (if (OR (= @language "English")(= k7b -1))((set k7b k8u)
- (set k9q
- "Personal Paint requires at least Kickstart 1.2.")
- (set k9r
- "Personal Paint requires at least Workbench 1.3.")
- (set k9h
- (cat "Please specify where Personal Paint should "
- "be installed. Before making a new selection, check the path suggested below. "
- "Select \"Help\" for instructions."))
- (set k9i
- (cat "This program installs Personal Paint on a hard-disk. "
- "Please specify a drawer on the hard-disk where Personal "
- "Paint should be installed. You may find it convenient to "
- "install the program and its support files inside a drawer "
- "named \"PPaint\". Check the path which appears as \"Selected Drawer\". "
- "If you like the path (even if it includes a \"PPaint\" drawer which "
- "does not yet exist on your hard disk) leave it as is: "
- "the installation program will create the drawer, if necessary. "
- "If you do not like the suggested path, you can edit the path string, "
- "and create new drawers using \"Make New Drawer\", if you wish to do so."
- "\n\nThe installation program will NOT add or create any drawers other than those specified by you, "
- "although it will detect whether the last drawer appearing in the path "
- "needs to be created or not."
- "\n\nThe installation program will then ask you which items "
- "you wish to install (PPaint program, pictures, animations, "
- "fonts, etc.)"
- "\n\nThe selected items and all related files and icons will "
- "be copied to the hard-disk."
- "\n\nIf the installation program finds another version of "
- "Personal Paint to be already installed in the same directory, it will move any "
- "existing startup configuration files to the \"OLD\" drawer.\n\n"
- @askdir-help))
- (set k3l
- "Analyzing target environment")
- (set k1r
- "Creating default directories")
- (set k3g
- "Installing \"PPaint\" program file")
- (set k3h
- "Decompressing and installing \"PPaint\" program file")
- (set k3d
- "Installing \"Personal.font\" in local directory")
- (set k3e
- "Installing \"Personal.font\" in FONTS:")
- (set k1q
- "Installing configuration files")
- (set k3i
- "Installing program default icon files")
- (set k3j
- "Installing PostScript ® module")
- (set k1n
- "Installing \"CloantoAudio\" to DEVS:")
- (set k1p
- "Installing color palettes")
- (set k3m
- "Installing tools")
- (set k3c
- "Installing additions to User Guide")
- (set k3a
- "Arranging icons")
- (set k1t
- "Installing HP DeskJet drivers")
- (set k3b
- "Installing JPEG DataType files")
- (set k1o
- "Installing color fonts in FONTS:")
- (set k3f
- "Installing pictures")
- (set k1m
- "Installing animation files")
- (set k1s
- "Executing FixFonts")
- (set k3k
- "Updating system startup files")
- (set k9j
- "Please select the items to be installed:")
- (set k9l
- (cat "It is possible to install individual items at separate times."
- "\n\nPictures and Animations tend to occupy a lot of space, "
- "and are not stored on the program disk. If you decide to install any "
- "Pictures or Animations, you will be asked to insert additional disks."
- "\n\nThe HP DeskJet drivers were jointly developed by Commodore "
- "and Cloanto. The JPEG DataType software is included with the "
- "kind permission of Steve Goddard. Please refer to the User Guide for more details on the "
- "printer drivers and on the JPEG DataType."
- "\n\nBy default, all items are selected. Any items "
- "displayed in a non-selected mode could mean that the "
- "installation program has determined certain conditions that "
- "may normally be a reason for not installing a particular object (e.g. "
- "little storage space, newer modules already installed, etc.)\n\n"
- @askoptions-help))
- (set k9a "PPaint Program Files")
- (set k3t "Pictures")
- (set k3p "Animations")
- (set k3q "Color Fonts")
- (set k3r "HP DeskJet Drivers")
- (set k3s "JPEG DataType")
- (set k9o
- "Please choose a default language:")
- (set k9p
- (cat "Personal Paint can be configured for several different languages. "
- "This affects all user interface texts (menus, gadgets, etc.)"
- "\n\nThe default language will be used to display user interface "
- "texts when the program is launched."
- "\n\nPlease refer to the User Guide for more details.\n\n"
- @askchoice-help))
- (set k9c "English")
- (set k9b "German")
- (set k9d "French")
- (set k9e "Italian")
- (set k1a
- "\nDecompress installed program files?")
- (set k1b
- (cat "Some program files on the distribution disk have been compressed "
- "to save space. Compression can save hundreds of Kbytes "
- "on a large file such as \"PPaint\", but may also slow down "
- "the program launch process. In practice, you may have "
- "to wait longer after double-clicking on the \"PPaint\" icon."
- "\n\nThere should be little need to expand the files during installation if your system "
- "has at least a 68030 CPU, which is fast enough to decompress "
- "programs without a noticeable delay each time they are loaded."
- "\n\nOn less powerful systems, you may prefer to decompress all "
- "files now, and install them in an uncompressed format (unless "
- "it is important to save space on your hard disk)."))
- (set k1g
- (cat "\nPersonal Paint is already installed in the destination drawer. "
- "Would you like to overwrite that program, and move any existing "
- "configuration files to the \"OLD\" directory?"))
- (set k1h
- (cat "The installation program has found that some version of Personal Paint "
- "is already installed in the destination drawer. If you proceed "
- "with the installation, that version will be deleted and the new "
- "version will be installed instead."
- "\n\nExisting startup setting files, colors, user interface text files "
- "and previously backed-up configuration files will be preserved "
- "(you will find those which have changed inside a drawer named \"OLD\")."
- "\n\n\"Startup_x.set\" files are "
- "compatible across different program versions, although newer "
- "versions may make it possible to define additional program settings.\n\n"
- "Please refer to the User Guide for more details."))
- (set k3o
- (cat "The JPEG DataType requires at least a 68020 CPU and version 3.0 of the "
- "Amiga operating system. It will not be installed now."))
- (set k1e
- (cat "\nA newer version of the JPEG DataType is already installed on "
- "your system disk. Do you wish to overwrite it?"))
- (set k1f
- (cat "Normally, there should be no reason to install an older version "
- "of the software. The User Guide explains how to manually install "
- "an Amiga DataType."))
- (set k1c
- (cat "\nOne or more HP DeskJet drivers are already installed on "
- "your system disk. They have the same name as the drivers "
- "included with Personal Paint, but have different contents "
- "and a newer file date."
- "\n\nDo you wish to overwrite them?"))
- (set k1d
- (cat "If the printer drivers which are already installed are newer, "
- "or work satisfactorily, you may decide not to use those included "
- "with Personal Paint, or rename them in order to keep both versions. "
- "\n\nThese HP DeskJet drivers were jointly developed by Commodore "
- "and Cloanto. Feature enhancements include: improved RLE "
- "compression, better color balancing, extended page formats and "
- "support of four-ink modes."
- "\n\nPlease refer to the User Guide for more details "
- "on these printer drivers."))
- (set k1k
- "\nAdd PPaint: Assign to \"S:user-startup\"?")
- (set k1l
- (cat "Personal Paint requires the logical name \"PPaint\" to "
- "be assigned, so that when you double-click on an icon created "
- "with it, Amiga will know where to find the program.\n\n"
- @startup-help))
- (set k1i
- "\nAdd JPEGTMP: Assign to \"S:user-startup\"?")
- (set k1j
- (cat "The JPEG DataType uses \"JPEGTMP:\" to store large temporary files.\n\n"
- @startup-help))
- (set k9m
- (cat "Please indicate where the JPEG DataType should store "
- "its temporary files."))
- (set k9n
- (cat "The JPEG DataType may need to store large intermediate "
- "files. If you have enough RAM, select \"RAM:T\". Otherwise, "
- "\"Work:T\" may be a good choice.\n\n"
- @askdir-help))
- (set k9f
- "\nPlease insert the program disk (installation disk) in any drive.")
- (set k9f2
- "\nPlease insert the disk labelled \"PPaint_2\" in any drive.")
- (set k3n
- (Cat "An error interrupted the installation procedure. "
- "This could be caused by a low memory condition (RAM or disk). "
- "You need two disk drives if you are installing Personal Paint "
- "on floppy disks."
- "\n\nAn alternate installation program can be used by typing the "
- "following command from a Shell window:"
- "\n\nPPaint:PPaint_Prefs/PP_Locale/InstallPPaint.multi"
- "\n\nIf the error source cannot be removed, follow "
- "the instructions in the User Guide to install the program "
- "manually. Please report any unusual error conditions to Cloanto."
- ))))
- (onerror ((user 1)
- (message k3n)
- (exit (quiet))))
- (procedure filecomp ((set k8k 2)
- (if (<> (exists k7h) 1)(set k8k -1))
- (if (<> (exists k7i) 1)(set k8k 1))
- (if (= k8k 2)((if (= (getsize k7h)(getsize k7i))((if (NOT (OR (earlier k7h k7i)(earlier k7i k7h)))(set k8k 0)((if (= (getsum k7h)(getsum k7i))((set k8k 0)))))))))
- (if (<> k8k 0)((if (= k8k 2)((if (< (getversion k7h)(getversion k7i))(set k8k -1))
- (if (> (getversion k7h)(getversion k7i))(set k8k 1))))
- (if (= k8k 2)((if (earlier k7h k7i)(set k8k -1))
- (if (earlier k7i k7h)(set k8k 1))))
- (if (= k8k 2)(set k8k 1) )))))
- (procedure makeppdir ((set k7i (tackon k7e k7i))
- (if (<> (exists (cat k7i ".info")) 1)(set k8a 0) )
- (if (<> (exists k7i) 2)((if (= (exists k7i) 1)(delete k7i (optional "force")))
- (makedir k7i (infos))))))
- (set k7l (trap 1 ((set k7m (/ (getversion "exec.library" (resident)) 65536))
- (set k7n (/ (getversion "icon.library" (resident)) 65536))
- (if (< k7m 33)(message k9q))
- (if (< k7n 34)(message k9r))
- (set k7f (pathonly (pathonly (pathonly @icon))))
- (set k7e (getassign "PPaint" "a"))
- (if (= (getdevice k7f)(getdevice k7e))(set k7e "") )
- (if (= k7e "")((set k7e (getassign "PWrite" "a"))
- (if (= k7e "")(set k7e (getassign "C1-Text" "a")))
- (if (= k7e "")(set k7e (getassign "PFM" "a")))
- (if (= k7e "")(set k7e (getassign "PFM2" "a")))
- (if (= k7e "")(set k7e (getassign "DPaint" "a")))
- (if (= k7e "")(set k7e (getassign "DeluxePaintIII" "a")))
- (if (= k7e "")(set k7e (getassign "DPaintIV" "a")))
- (if (= k7e "")(set k7e (getassign "DPaintV" "a")))
- (if (= k7e "")(set k7e (getassign "ADPRO" "a")))
- (if (= k7e "")(set k7e (getassign "PPage" "a")))
- (if (<> k7e "")(set k7e (pathonly k7e)))
- (if (= k7e "")(set k7e (getassign "Work" "vda")))
- (if (= k7e "")(set k7e (getassign "DH1" "vda")))
- (if (= k7e "")(set k7e (getassign "HD1" "vda")))
- (if (= k7e "")(set k7e (getassign "QDH1" "vda")))
- (if (= k7e "")(set k7e (getassign "DH0" "vda")))
- (if (= k7e "")(set k7e (getassign "HD0" "vda")))
- (if (= k7e "")(set k7e (getassign "QDH0" "vda")))
- (if (<> k7e "")(
- set k7e (tackon k7e "PPaint"))((set k7e @default-dest)
- (if (= @user-level 0)(user 1))))))
- (set k7e (askdir
- (prompt k9h)
- (help k9i)
- (default k7e)
- (newpath)))
- (if (= (exists k7e) 1)(delete k7e (optional "force")))
- (if (< (exists k7e) 2)(makedir k7e (infos)))
- (working k3l)
- (if (= (getdevice k7e)(getdevice "RAM:"))((set k8h 1)
- (set k9u (< (+ (database "total-mem")) 2097152)))((set k8h 0)
- (set k9u (< (getdiskspace k7e) 2097152))))
- (set k9v (< (getdiskspace "FONTS:") 90624))
- (set k9w (< (getdiskspace "SYS:") 98304))
- (set k7c -1)
- (set k7h (set k7g (tackon k7f "CloantoAudio")))
- (set k7i (set k8m "DEVS:CloantoAudio"))
- (filecomp)
- (set k9s (< k8k 1))
- (set k7o 0)
- (set k7h (tackon k7f "fonts/KaraCHISELsrf/55.8C"))
- (set k7i "FONTS:KaraCHISELsrf/55.8C")
- (filecomp)
- (set k9t (< k8k 1))
- (set k7h (tackon k7f "fonts/KaraGRANITE/55.8C"))
- (set k7i "FONTS:KaraGRANITE/55.8C")
- (filecomp)
- (if (= k8k 1)(set k9t 0))
- (set k7h (tackon k7f "fonts/Personal/8"))
- (set k7i "FONTS:Personal/8")
- (filecomp)
- (set k8f (AND (= (exists "FONTS:Personal.font") 1)(< k8k 1)))
- (set k9x 0)
- (set k7h (tackon k7f "HP_DeskJet/Devs/Printers/HP_DeskJet"))
- (set k7i "SYS:Devs/Printers/HP_DeskJet")
- (filecomp)
- (set k9y (< k8k 1))
- (set k9x (= k8k -1))
- (set k7h (tackon k7f "HP_DeskJet/Devs/Printers/HP_DeskJet550C"))
- (set k7i "SYS:Devs/Printers/HP_DeskJet550C")
- (filecomp)
- (if (= k8k 1)(set k9y 0))
- (if (= k8k -1)(set k9x 1))
- (set k7h (tackon k7f "JPEG/Classes/DataTypes/JPEG.datatype"))
- (set k7i "SYS:Classes/DataTypes/JPEG.datatype")
- (filecomp)
- (set k8d (< k8k 1))
- (set k8c (= k8k -1))
- (set k7h (tackon k7f "JPEG/Devs/DataTypes/JPEG"))
- (set k7i "SYS:Devs/DataTypes/JPEG")
- (filecomp)
- (if (= k8k 1)(set k8d 0))
- (if (= k8k -1)(set k8c 1))
- (if (<> (exists "SYS:Classes") 2)(set k8d 1))
- (set k8e (OR (< k7n 39)(< (+ (database "cpu")) 68020)))
- (if k9u ((set k7c (BITXOR (shiftleft 1 k8r) k7c))
- (set k7c (BITXOR (shiftleft 1 k8n) k7c))))
- (if (OR k9v k9t)(set k7c (BITXOR (shiftleft 1 k8o) k7c)))
- (if (OR k9w (OR k9y k9x))(set k7c (BITXOR (shiftleft 1 k8p) k7c)))
- (if (OR (OR k9w (OR k8d k8c)) k8e)(set k7c (BITXOR (shiftleft 1 k8q) k7c)))
- (set k7c (askoptions
- (prompt k9j)
- (help k9l)
- (choices k9a k3q k3r k3s k3t k3p)
- (default k7c)))
- (set k7i (tackon k7e "PPaint"))
- (if (= (exists k7i) 2)(set k7e k7i))
- (set @default-dest k7e)
- (if (IN k7c k8s)((if (exists (tackon k7e "PPaint"))(
- if (NOT (askbool
- (prompt k1g)
- (help k1h)
- (default 1)))(set k7c (BITXOR (shiftleft 1 k8s) k7c))))))
- (if (IN k7c k8s)((set k7a (askchoice
- (prompt k9o)
- (help k9p)
- (choices k9c k9b k9e k9d)
- (default k7b)))
- (set k8b (askbool
- (prompt k1a)
- (help k1b)
- (default (AND (< (+ (database "cpu")) 68030)(NOT k9u)))))))
- (if (IN k7c k8s)((if k8h (set k8j 0)(
- set k8j (askbool
- (prompt k1k)
- (help k1l)
- (default (<> (expandpath (getassign "PPaint" "a"))(expandpath k7e))))))))
- (if (AND (AND (IN k7c k8p) k9x)(= (exists (tackon k7f "HP_DeskJet")) 2))(
- if (NOT (askbool
- (prompt k1c)
- (help k1d)
- (default 0)))(set k7c (BITXOR (shiftleft 1 k8p) k7c))))
- (if (AND (IN k7c k8q)(<> (exists (tackon k7f "JPEG")) 2))(set k7c (BITXOR (shiftleft 1 k8q) k7c)))
- (if (AND (IN k7c k8q) k8e)((message k3o)
- (set k7c (BITXOR (shiftleft 1 k8q) k7c))))
- (if (AND (IN k7c k8q) k8c)(
- if (NOT (askbool
- (prompt k1e)
- (help k1f)
- (default 0)))(set k7c (BITXOR (shiftleft 1 k8q) k7c))))
- (if (IN k7c k8q)(
- set k8i (askbool
- (prompt k1i)
- (help k1j)
- (default (= (getassign "JPEGTMP" "a") "")))))
- (if (AND (IN k7c k8q) k8i)((set k7d (getassign "JPEGTMP" "a"))
- (if (= k7d "")(set k7d "RAM:t"))
- (set k7d (askdir
- (prompt k9m)
- (help k9n)
- (default k7d)
- (newpath)))))
- (if (IN k7c k8s)((working k1r)
- (set k7i (tackon k7e "PPaint_Icons_1.info"))
- (if (= (exists k7i) 1)(delete k7i (optional "force")))
- (set k7i (tackon k7e "PPaint_Icons_2"))
- (set k7j (tackon k7e "PPaint_Icons"))
- (if (= (exists k7i) 2)((if (= (exists k7j) 2)(delete k7i (optional "force"))(rename k7i k7j) )))
- (set k7i (cat k7i ".info"))
- (set k7j (cat k7j ".info"))
- (if (= (exists k7i) 1)((if (= (exists k7j) 1)(delete k7i (optional "force"))(rename k7i k7j) )))
- (set k8a 1)
- (set k7i (tackon k7e "fonts"))
- (if (<> (exists k7i) 2)((if (= (exists k7i) 1)(delete k7i (optional "force")))
- (makedir k7i)))
- (set k7i "PPaint_Prefs")
- (makeppdir)
- (set k7i "PPaint_Icons")
- (makeppdir)
- (set k7i "PPaint_Tools")
- (makeppdir)
- (set k7i "Pictures")
- (makeppdir)
- (set k7i "Animations")
- (makeppdir)
- (set k7i "Colors")
- (makeppdir)
- (set k7i "Brushes")
- (makeppdir)
- (set k7i "Stencils")
- (makeppdir)
- (askdisk (prompt k9f)(help @askdisk-help)(dest (substr k7f 0 (- (strlen k7f) 1))))
- (if k8b ((working k3h)
- (run (cat (tackon k7f "c/Deplode") " >NIL: \"" (tackon k7f "PPaint") "\" \"" (tackon k7e "PPaint") "\"")))((working k3g)
- (copyfiles
- (source (tackon k7f "PPaint"))
- (dest k7e)
- (optional "nofail" "force"))))
- (if (= (exists (tackon k7e "PPaint.info")) 0)((copyfiles
- (source (tackon k7f "PPaint.info"))
- (dest k7e)
- (optional "nofail" "force")
- (nogauge))
- (tooltype
- (dest (tackon k7e "PPaint"))
- (swapcolors)
- (noposition))))
- (working k3i)
- (set n 0)
- (while (set k8l (select n
- "def_AppIcon.info"
- "def_Brush.info"
- "def_Stencil.info"
- "def_Picture.info"
- "def_Animation.info"
- "def_Palette.info"
- "def_Settings.info"
- "def_Drawer.info"
- ""
- ))((set n (+ n 1))
- (copyfiles
- (source (tackon k7f (cat "PPaint_Icons/" k8l)))
- (dest (tackon k7e "PPaint_Icons"))
- (optional "nofail" "force")
- (nogauge))))
- (working k3j)
- (copyfiles
- (source (tackon k7f "PPaint_PS"))
- (dest k7e)
- (optional "nofail" "force")
- (nogauge))
- (if (= (exists (tackon k7e "PPaint_PS.info")) 0)((copyfiles
- (source (tackon k7f "PPaint_PS.info"))
- (dest k7e)
- (optional "nofail" "force")
- (nogauge))
- (tooltype
- (dest (tackon k7e "PPaint_PS"))
- (swapcolors)
- (noposition))))
- (if (NOT k9s)((working k1n)
- (copyfiles
- (source k7g)
- (dest "DEVS:")
- (optional "nofail" "force")
- (nogauge))))
- (working k1p)
- (foreach (tackon k7f "Colors") "~(#?.info)" ((copyfiles
- (source (tackon k7f (cat "Colors/" @each-name)))
- (dest (tackon k7e "Colors"))
- (infos)
- (optional "nofail" "force")
- (nogauge))
- (set k7j (tackon k7e (cat "Colors/" @each-name)))
- (if (= (exists (cat k7j ".info")) 1)((tooltype
- (dest k7j)
- (swapcolors))))))
- (working k3m)
- (foreach (tackon k7f "PPaint_Tools") "~(#?.info)" ((copyfiles
- (source (tackon k7f (cat "PPaint_Tools/" @each-name)))
- (dest (tackon k7e "PPaint_Tools"))
- (infos)
- (optional "nofail" "force")
- (nogauge))
- (set k7j (tackon k7e (cat "PPaint_Tools/" @each-name)))
- (if (= (exists (cat k7j ".info")) 1)((tooltype
- (dest k7j)
- (swapcolors))))))
- (working k3c)
- (copyfiles
- (source (tackon k7f "PPaint.man"))
- (dest k7e)
- (optional "nofail" "force")
- (nogauge))
- (if (= (exists (tackon k7e "PPaint.man.info")) 0)((copyfiles
- (source (tackon k7f "PPaint.man.info"))
- (dest k7e)
- (optional "nofail" "force")
- (nogauge))
- (tooltype
- (dest (tackon k7e "PPaint.man"))
- (setdefaulttool "SYS:Utilities/More")
- (swapcolors)
- (noposition))))
- (if (NOT k8a)((working k3a)
- (foreach (set k7h (tackon k7f "PPaint_Prefs/II/PPaint")) "#?.info" ((copyfiles
- (source (tackon k7h @each-name))
- (dest k7e)
- (optional "nofail" "force")
- (nogauge))
- (tooltype
- (dest (tackon k7e (substr @each-name 0 (- (strlen @each-name) 5))))
- (swapcolors))))
- (if (<> (expandpath k7e)(expandpath (cat (getdevice k7e) ":")))((if (OR (= (exists (cat k7e ".info")) 0)(= (exists (tackon k7e "fonts/Personal.font")) 0))((copyfiles
- (source (tackon k7f "PPaint_Prefs/II/PPaint.info"))
- (dest (pathonly k7e))
- (newname (cat (fileonly k7e) ".info"))
- (optional "nofail" "force")
- (nogauge))
- (tooltype
- (dest k7e)
- (swapcolors))))))))
- (working k1q)
- (set k8a 1)
- (set n 0)
- (while (set k8l (select n
- "Startup_1.set"
- "Startup_2.set"
- "@"
- "UIGraphics.pic"
- "UIColors.6"
- "UIColors.12"
- "UIText.eng"
- "UIText.deu"
- "UIText.fra"
- "UIText.ita"
- ""
- ))((set n (+ n 1))
- (if (= k8l "@")((set k8l "Startup_A.set")
- (set k7h (cat "T:" k8l))
- (if (= (getassign "T" "a") "")((if (<> (exists "RAM:T") 2)(makedir "RAM:T"))
- (makeassign "T" "RAM:T")))
- (if (= (exists k7h) 1)(delete k7h (optional "force")))
- (textfile
- (dest k7h)
- (append (cat
- "PPAINT SETTINGS\n"
- "; Country and Language Settings\n\n"
- ("LANG = %ld\n" k7a)))))((set k7h (tackon k7f (cat "PPaint_Prefs/" k8l)))))
- (set k7i (tackon k7e (cat "PPaint_Prefs/" k8l)))
- (filecomp)
- (if (<> k8k 0)((set k8a 0)
- (if (= (exists k7i) 1)((if (<> (exists (tackon k7e "PPaint_Prefs/OLD")) 2)((makedir (tackon k7e "PPaint_Prefs/OLD"))))
- (set k7j (tackon k7e (cat "PPaint_Prefs/OLD/" k8l)))
- (run (cat (tackon k7f "c/Preserve") " >NIL: \"" k7j "\""))
- (rename k7i k7j)))
- (if (= (exists k7h) 1)((copyfiles
- (source k7h)
- (dest (tackon k7e "PPaint_Prefs"))
- (infos)
- (optional "nofail" "force")
- (nogauge))
- (if (= (exists (cat k7i ".info")) 1)((tooltype
- (dest k7i)
- (swapcolors))))))))))
- (delete "T:Startup_A.set" (optional "force"))
- (if (NOT k8a)((working k3a)
- (foreach (set k7h (tackon k7f "PPaint_Prefs")) "#?.info" ((copyfiles
- (source (tackon k7h @each-name))
- (dest (tackon k7e "PPaint_Prefs"))
- (optional "nofail" "force")
- (nogauge))
- (tooltype
- (dest (tackon k7e (cat "PPaint_Prefs" (substr @each-name 0 (- (strlen @each-name) 5)))))
- (swapcolors))))))
- (working k3d)
- (copyfiles
- (source (tackon k7f "fonts/Personal"))
- (dest (tackon k7e "fonts/Personal"))
- (all)
- (optional "nofail" "force")
- (nogauge))
- (copyfiles
- (source (tackon k7f "fonts/Personal.font"))
- (dest (tackon k7e "fonts"))
- (optional "nofail" "force")
- (nogauge))
- (if (AND (NOT k8f)(<> (getassign "FONTS" "a") ""))((working k3e)
- (copyfiles
- (source (tackon k7f "fonts/Personal"))
- (dest "FONTS:Personal")
- (all)
- (optional "nofail" "force")
- (nogauge))
- (copyfiles
- (source (tackon k7f "fonts/Personal.font"))
- (dest "FONTS:")
- (optional "nofail" "force")
- (nogauge))))
- (if k8j ((working k3k)
- (startup "Personal Paint"
- (prompt k1k)
- (help k1l)
- (command ("Assign >NIL: PPaint: %s\n" k7e)))
- (makeassign "PPaint" k7e)))))
- (if (AND (IN k7c k8o)(<> (getassign "FONTS" "a") ""))((askdisk (prompt k9f)(help @askdisk-help)(dest (substr k7f 0 (- (strlen k7f) 1))))
- (working k1o)
- (set n 0)
- (while (set k8l (select n
- "KaraCHISELsrf/55.8C"
- "KaraCHISELsrf.font"
- "KaraGRANITE/55.8C"
- "KaraGRANITE.font"
- ""
- ))((set n (+ n 1))
- (set k7h (tackon k7f (cat "fonts/" k8l)))
- (if (= (exists k7h) 1)((copyfiles
- (source k7h)
- (dest (pathonly (tackon "FONTS:" k8l)))
- (optional "nofail" "force")
- (nogauge)))(set k7o 1) )))))
- (if (IN k7c k8p)((askdisk (prompt k9f)(help @askdisk-help)(dest (substr k7f 0 (- (strlen k7f) 1))))
- (working k1t)
- (set n 0)
- (while (set k8l (select n
- "HP_DeskJet"
- "HP_DeskJet550C"
- ""
- ))((set n (+ n 1))
- (set k7h (tackon k7f (cat "HP_DeskJet/Devs/Printers/" k8l)))
- (if (= (exists k7h) 1)((copyfiles
- (source k7h)
- (dest "SYS:Devs/Printers")
- (infos)
- (optional "nofail" "force")
- (nogauge))))))))
- (if (IN k7c k8q)((askdisk (prompt k9f)(help @askdisk-help)(dest (substr k7f 0 (- (strlen k7f) 1))))
- (working k3b)
- (if (<> (exists "SYS:Classes") 2)(makedir "SYS:Classes" (infos)) )
- (set n 0)
- (while (set k8l (select n
- "Classes/DataTypes/JPEG.datatype"
- "Devs/DataTypes/JPEG"
- ""
- ))((set n (+ n 1))
- (set k7h (tackon k7f (cat "JPEG/" k8l)))
- (if (= (exists k7h) 1)((copyfiles
- (source k7h)
- (dest (pathonly (tackon "SYS:" k8l)))
- (infos)
- (optional "nofail" "force")
- (nogauge)))(set k8i 0))))
- (if k8i ((working k3k)
- (startup "JPEG DataType"
- (prompt k1i)
- (help k1j)
- (command ("Assign >NIL: JPEGTMP: %s\n" k7d)))
- (makeassign "JPEGTMP" k7d)))))
- (if (IN k7c k8r)((set k7h "PPaint_2:Pictures")
- (set k7i "Pictures")
- (askdisk (prompt k9f2)(help @askdisk-help)(dest "PPaint_2"))
- (if (= (exists k7h) 2)((working k3f)
- (makeppdir)
- (foreach k7h "~(#?.info)" ((copyfiles
- (source (tackon k7h @each-name))
- (dest k7i)
- (infos)
- (optional "nofail" "force")
- (nogauge))
- (set k7j (tackon k7i @each-name))
- (if (= (exists (cat k7j ".info")) 1)((tooltype
- (dest k7j)
- (swapcolors))))))))))
- (if (IN k7c k8n)((set k7h "PPaint_2:Animations")
- (set k7i "Animations")
- (askdisk (prompt k9f2)(help @askdisk-help)(dest "PPaint_2"))
- (if (= (exists k7h) 2)((working k1m)
- (makeppdir)
- (foreach k7h "#?.anim" ((copyfiles
- (source (tackon k7h @each-name))
- (dest k7i)
- (infos)
- (optional "nofail" "force")
- (nogauge))
- (set k7j (tackon k7i @each-name))
- (if (= (exists (cat k7j ".info")) 1)((tooltype
- (dest k7j)
- (swapcolors))))))
- (foreach k7h "#?.lzh" ((if (= (exists "PPaint_2:c/Lharc") 1)((run (cat "PPaint_2:c/Lharc >NIL: -a -m -n e \"" (tackon k7h @each-name) "\" \"" k7i "/\""))))))))))
- (if k7o ((askdisk (prompt k9f2)(help @askdisk-help)(dest "PPaint_2"))
- (working k1o)
- (set n 0)
- (while (set k8l (select n
- "KaraCHISELsrf/55.8C"
- "KaraCHISELsrf.font"
- "KaraGRANITE/55.8C"
- "KaraGRANITE.font"
- ""
- ))((set n (+ n 1))
- (set k7h (cat "PPaint_2:fonts/" k8l))
- (if (= (exists k7h) 1)((copyfiles
- (source k7h)
- (dest (pathonly (tackon "FONTS:" k8l)))
- (optional "nofail" "force")
- (nogauge))))))))
- (if (AND (= (exists "SYS:System/FixFonts") 1)(OR (AND (IN k7c k8s)(NOT k8f))(IN k7c k8o)))((working k1s)
- (run "SYS:System/FixFonts >NIL:")))
- (exit))))
- (if (> k7l 1)(abort))
- (exit (quiet))
-