home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 1993-07-07 | 26.5 KB | 1,051 lines
; ************************************************ ; * ; * $VER: Install-CED v3.5.0 (02.07.93) ; * ; * This is the installation script for CygnusSoft's/ASDG's CygnusEd Professional 3.5 ; * ; * Copyright © 1989-1993 CygnusSoft Software and ASDG, Incorporated All Rights Reserved ; * ; ************************************************ ; **************************** ; * Set up some global variables. ; **************************** ; (set ProductName "CygnusEd Professional") ; product name (set ProductBaseName "CED") ; product base name (set ActivatorName "ED") ; product activator name (set VersionNum "3.5") ; product version number (set OSVersion (/ (getversion) 65536)) (set WBVersion (/ (getversion "version.library" (resident)) 65536)) (set TotalFiles 0) (set AccumFiles 0) (set PctDone 0) (set DisplayReadMe 0) (set Disk1Name "CygnusED") ; actual name of disk 1 (set DiskInstall Disk1Name) ; installation (main) disk (set DiskCED Disk1Name) ; CED/ED program disk (set DiskMetaMac Disk1Name) ; MetaMac program disk (set DiskRecoverCEDFiles Disk1Name) ; RecoverCEDFiles program disk (set DiskENV Disk1Name) ; ENV:CED default files (set DiskCEDScripts Disk1Name) ; CED ARexx scripts disk (set DiskCatalogs Disk1Name) ; Locale catalogs disk (procedure setPkgOpts ; ; **************************** ; * Ask the user which parts of the package should be installed. ; **************************** ; ( (set PkgOpts (askoptions (prompt ("Select the parts of the %s package you want to install " ProductName) "at this time." ) (help "This part of the installation procedure lets you select the " ("parts of the %s package you want to install at this time.\n" ProductName) "\n" ("*** %s (%s and %s)\n" ProductName ProductBaseName ActivatorName) ("This option lets you install the main programs, %s and " ProductBaseName) ("%s (the %s Activator).\n" ActivatorName ProductBaseName) "\n" ("*** MetaMac (The %s Macro Editor)\n" ProductBaseName) ("This option lets you install the macro editor for %s. " ProductBaseName) "If you have macro definitions which you would like to examine " ("or modify from outside of %s, then you should install this program.\n" ProductBaseName) "\n" "*** RecoverCEDFiles\n" "This option lets you install the utility which can recover text " ("files that you might have been working on in %s at the time of a " ProductBaseName) "system crash. This is a very useful utility which you should " "install.\n" "\n" "*** ARexx Scripts\n" "This option lets you install some ARexx scripts for " ("%s. These may come in handy if you " ProductBaseName) "plan to control the programs through ARexx.\n" "\n" "*** ReadMe\n" "This option lets you install the ReadMe file from disk 1 " "onto your floppy or hard disk to use as a reference.\n" "\n" @askoptions-help ) (choices ; bit position 0 -- todo & 1 ; ("%s (%s and %s)" ProductName ProductBaseName ActivatorName) ; bit position 1 -- todo & 2 ; ("MetaMac (The %s Macro Editor)" ProductBaseName) ; bit position 2 -- todo & 4 ; "RecoverCEDFiles" ; bit position 3 -- todo & 8 ; "ARexx Scripts" ; bit position 4 -- todo & 16 ; "ReadMe" ) ) ) ) ) (procedure setDirPath ; ; **************************** ; * Ask the user for a directory name. ; **************************** ; ; these variables must be defined before calling this procedure: ; setDirPathWhy ; setDirPathHelp ; DirPath ; ; this procedure returns the selected directory in DirPath ; ( (set moveon FALSE) (while (NOT moveon) ( (set DirPath (askdir (prompt ("Please select the directory %s" setDirPathWhy) ) (help setDirPathHelp "\n" @askdir-help ) (default DirPath) ) ) (if (= (exists DirPath) 0) (makedir DirPath) (set moveon TRUE) ) ) ) ) ) (procedure copyLibFile ; ; **************************** ; * Copy the specific library file to the LIBS: directory. ; **************************** ; ; these variables must be defined before calling this procedure: ; ; copyLibFileName ; copyLibFileHelp ; DirPath ; ( (if (= (exists (tackon DirPath copyLibFileName)) 1) ( (protect (tackon DirPath copyLibFileName) "+rwed") ) ) (copylib (prompt ("Copying %s to %s" copyLibFileName DirPath)) (help copyLibFileHelp "\n" "If you already have a copy of this library in the selected destination directory, the library " "included on the distribution disk will be compared to the one you " "already have. If your current library is an old version, the newer " "version will be installed.\n" "\n" @copylib-help ) (source copyLibFileName) (dest DirPath) (confirm) ) ) ) (procedure deleteIfExists ; ; **************************** ; * Delete the given file, if it exists. ; **************************** ; ; these variables must be defined before calling this procedure: ; ; deleteFileName ; ( (if (= (exists deleteFileName) 1) ( (protect deleteFileName "+rwed") (delete deleteFileName) ) ) ) ) (procedure renameIfExists ; ; **************************** ; * Rename the given file, if it exists. ; **************************** ; ; these variables must be defined before calling this procedure: ; ; origFileName ; renameFileName ; ( (if (= (exists origFileName) 1) ( (protect origFileName "+rwed") (rename origFileName deleteFileName) ) ) ) ) (procedure incrementMeter ; ; **************************** ; * Increment the progress meter indicator. ; **************************** ; ; addToMeter ; ( (set PctDone (/ (* AccumFiles 100) TotalFiles)) (set AccumFiles (+ AccumFiles addToMeter)) (complete PctDone) ) ) ; **************************** ; * Remove old CED files routine ; **************************** ; (procedure removeOldCEDFiles ( ; Look in SYS:Utilities... ; (set deleteFileName "SYS:Utilities/CED") (deleteIfExists) (set deleteFileName "SYS:Utilities/CED.info") (deleteIfExists) (set deleteFileName "SYS:Utilities/ED") (deleteIfExists) (set deleteFileName "SYS:Utilities/ED.info") (deleteIfExists) (set deleteFileName "SYS:Utilities/RecoverCEDFiles") (deleteIfExists) (set deleteFileName "SYS:Utilities/RecoverCEDFiles.info") (deleteIfExists) ; Look in SYS:System... ; (set deleteFileName "SYS:System/CED") (deleteIfExists) (set deleteFileName "SYS:System/CED.info") (deleteIfExists) (set deleteFileName "SYS:System/ED") (deleteIfExists) (set deleteFileName "SYS:System/ED.info") (deleteIfExists) (set deleteFileName "SYS:System/RecoverCEDFiles") (deleteIfExists) (set deleteFileName "SYS:System/RecoverCEDFiles.info") (deleteIfExists) ; Look in C:... ; (set deleteFileName "C:CED") (deleteIfExists) (set deleteFileName "C:CED.info") (deleteIfExists) ; ; We will let the CEDInstall procedure handle the deletion of the ED program. ; ; (set deleteFileName "C:ED") ; (deleteIfExists) ; (set deleteFileName "C:ED.info") ; (deleteIfExists) (set deleteFileName "C:RecoverCEDFiles") (deleteIfExists) (set deleteFileName "C:RecoverCEDFiles.info") (deleteIfExists) ) ) ; **************************** ; * CED Installation routine ; **************************** ; (procedure CEDInstall ( ; **************************** ; * Install the Program ; **************************** ; (makeassign "CEDINSTALL" CEDDir) (set addToMeter 2) (incrementMeter) (set deleteFileName (tackon "CEDINSTALL:" "CED")) (deleteIfExists) (copyfiles (prompt ("Installing %s..." ProductBaseName)) (help "") (source ("%s:%s/%s" DiskInstall ProductBaseName ProductBaseName)) (dest "CEDINSTALL:") ) (set deleteFileName (tackon "CEDINSTALL:" "CED.info")) (deleteIfExists) (if (>= OSVersion 36) (set ProductIconVer "2.0") (set ProductIconVer "1.3") ) (copyfiles (prompt "") (help "") (source ("%s:%s/%s%s.info" DiskInstall ProductBaseName ProductBaseName ProductIconVer)) (dest "CEDINSTALL:") ) (rename ("CEDINSTALL:%s%s.info" ProductBaseName ProductIconVer) ("CEDINSTALL:%s.info" ProductBaseName)) ; **************************** ; * Install the Activator ; **************************** ; (set addToMeter 2) (incrementMeter) (if (= 1 (exists "C:ED")) (if (AND (= 1 removeOldED) (AND (= 1 backupOldED) (= (expandpath "C:") (expandpath "CEDINSTALL:")))) ( ; This is a simple (dumb) check. Basically, we check the ; file size of the currently installed 'Ed'. If it is ; greater than 10,000 bytes, we can assume it is Commodore's ; 'Ed' program. Otherwise, we will assume it is an old ; copy of CygnusEd's ED activator program. ; (if (> (getsize "C:Ed") 10000) ( ; rename the Commodore Ed program to Ed.CBM ; (set origFileName "C:Ed") (set renameFileName "C:Ed.CBM") (renameIfExists) ) ( ; delete the old CygnusEd ED program ; (set deleteFileName (tackon "CEDINSTALL:" "ED")) (deleteIfExists) (set deleteFileName (tackon "CEDINSTALL:" "ED.info")) (deleteIfExists) ) ) ) ) ) (copyfiles (prompt ("Installing %s..." ActivatorName)) (help "") (source ("%s:%s/%s" DiskInstall ProductBaseName ActivatorName)) (dest "CEDINSTALL:") ) (set deleteFileName (tackon "CEDINSTALL:" "ED.info")) (deleteIfExists) (if (>= OSVersion 36) (set ProductIconVer "2.0") (set ProductIconVer "1.3") ) (copyfiles (prompt "") (help "") (source ("%s:%s/%s%s.info" DiskInstall ProductBaseName ActivatorName ProductIconVer)) (dest "CEDINSTALL:") ) (rename ("CEDINSTALL:%s%s.info" ActivatorName ProductIconVer) ("CEDINSTALL:%s.info" ActivatorName)) ; **************************** ; * Install the default icon, in both ENVARC: and ENV: ; **************************** ; (if (<> (getassign "ENVARC" "a") "") ( (set ENVCEDDir ("ENVARC:%s" ProductBaseName)) (onerror (abort ("The %s directory could not be created. " ENVCEDDir) "This might be because your destination disk or drawer " "has no room or is write protected. This installation " "cannot continue." ) ) (if (= (exists ENVCEDDir) 0) (makedir ENVCEDDir) ) (onerror (cleanUp) ) (makeassign "CEDINSTALL" ENVCEDDir) (set addToMeter 1) ; ENVARC:CED default file (incrementMeter) (copyfiles (prompt ("Installing ENVARC:%s default icon..." ProductBaseName)) (help "") (source ("%s:%s/def_CEDFile.info" DiskENV ProductBaseName)) (dest "CEDINSTALL:") (infos) ) ) ) (if (<> (getassign "ENV" "a") "") ( (set ENVCEDDir ("ENV:%s" ProductBaseName)) (onerror (abort ("The %s directory could not be created. " ENVCEDDir) "This might be because your destination disk or drawer " "has no room or is write protected. This installation " "cannot continue." ) ) (if (= (exists ENVCEDDir) 0) (makedir ENVCEDDir) ) (onerror (cleanUp) ) (makeassign "CEDINSTALL" ENVCEDDir) (set addToMeter 1) ; ENV:CED default file (incrementMeter) (copyfiles (prompt ("Installing ENV:%s default icon..." ProductBaseName)) (help "") (source ("%s:%s/def_CEDFile.info" DiskENV ProductBaseName)) (dest "CEDINSTALL:") (infos) ) ) ) ) ) ; **************************** ; * MetaMac Installation routine ; **************************** ; (procedure MetaMacInstall ( (makeassign "CEDINSTALL" MetaMacDir) (set addToMeter 2) ; 1 program + 1 icon (incrementMeter) (set deleteFileName (tackon "CEDINSTALL:" "MetaMac")) (deleteIfExists) (copyfiles (prompt "Installing MetaMac utility...") (help "") (source ("%s:%s/MetaMac" DiskMetaMac ProductBaseName)) (dest "CEDINSTALL:") ) (set deleteFileName (tackon "CEDINSTALL:" "MetaMac.info")) (deleteIfExists) (if (>= OSVersion 36) (set ProductIconVer "2.0") (set ProductIconVer "1.3") ) (copyfiles (prompt "") (help "") (source ("%s:%s/MetaMac%s.info" DiskMetaMac ProductBaseName ProductIconVer)) (dest "CEDINSTALL:") ) (rename ("CEDINSTALL:MetaMac%s.info" ProductIconVer) "CEDINSTALL:MetaMac.info") ) ) ; **************************** ; * RecoverCEDFiles Installation routine ; **************************** ; (procedure RecoverCEDFilesInstall ( (makeassign "CEDINSTALL" RecoverCEDFilesDir) (set addToMeter 2) ; 1 program + 1 icon (incrementMeter) (set deleteFileName (tackon "CEDINSTALL:" "RecoverCEDFiles")) (deleteIfExists) (copyfiles (prompt "Installing RecoverCEDFiles utility...") (help "") (source ("%s:%s/RecoverCEDFiles" DiskRecoverCEDFiles ProductBaseName)) (dest "CEDINSTALL:") ) (set deleteFileName (tackon "CEDINSTALL:" "RecoverCEDFiles.info")) (deleteIfExists) (if (>= OSVersion 36) (set ProductIconVer "2.0") (set ProductIconVer "1.3") ) (copyfiles (prompt "") (help "") (source ("%s:%s/RecoverCEDFiles%s.info" DiskRecoverCEDFiles ProductBaseName ProductIconVer)) (dest "CEDINSTALL:") ) (rename ("CEDINSTALL:RecoverCEDFiles%s.info" ProductIconVer) "CEDINSTALL:RecoverCEDFiles.info") ) ) ; **************************** ; * ARexxScript Installation routine ; **************************** ; (procedure ARexxScriptInstall ( (makeassign "CEDINSTALL" CEDScriptDir) (set addToMeter 1) ; 1 operation (incrementMeter) (copyfiles (prompt ("Installing %s ARexx Scripts..." ProductBaseName)) (help "") (source ("%s:CEDScripts" DiskCEDScripts)) (dest "CEDINSTALL:") (all) ) ) ) ; **************************** ; * ReadMe Installation routine ; **************************** ; (procedure ReadMeInstall ( (makeassign "CEDINSTALL" ReadMeDir) (set addToMeter 2) ; ReadMe + icon (incrementMeter) (copyfiles (prompt "Installing ReadMe file...") (help "") (source ("%s:ReadMe" DiskInstall)) (dest "CEDINSTALL:") (newname ("ReadMe_%s_%s" ProductBaseName VersionNum)) (infos) ) (if (= (exists ("CEDINSTALL:ReadMe_%s_%s.info" ProductBaseName VersionNum)) 1) ( (if (>= OSVersion 39) (set ReadMeTool "MultiView") (set ReadMeTool "More") ) (tooltype (prompt "") (help "") (dest ("CEDINSTALL:ReadMe_%s_%s" ProductBaseName VersionNum)) (setdefaulttool ReadMeTool) (noposition) ) ) ) ) ) ; **************************** ; * Locale Installation routine ; **************************** ; (procedure LocaleInstall ( (set addToMeter 1) ; 1 set of locale files (incrementMeter) (if (= (getassign "LOCALE" "a") "") ( ; no LOCALE: assigned -- we cannot continue ; (message "\nYou do not seem to have LOCALE: assigned to the directory " "where the localization files are stored.\n" "\n" "Please install the system software localization files before " "retrying this installation.\n" "\n\n" "Press either the Proceed or Abort Install button to abort " "this installation.\n") (cleanUp) ) ( ; LOCALE: was found ; (if (<> (exists "LOCALE:Catalogs") 2) ( (makedir "LOCALE:Catalogs") (if (<> (exists "LOCALE:Catalogs") 2) ( (message "\nThe directory:\n\nLOCALE:Catalogs\n\n" "could not be created. This installation " "requires this directory be present to " "install the selected locale support files.\n" "\n" "This installation cannot continue.\n") (cleanUp) ) ) ) ) (set LanguageToDo 0) (set LanguageMax 1) (while (< LanguageToDo LanguageMax) ( (set LanguageDesc (select LanguageToDo "Deutsch" "")) (if (IN LanguageID LanguageToDo) ( (copyfiles (prompt ("Installing %s catalogs..." LanguageDesc)) (help "") (source ("%s:Catalogs/%s" DiskCatalogs LanguageDesc)) (dest ("LOCALE:Catalogs/%s" LanguageDesc)) (all) ) ) ) (set LanguageToDo (+ LanguageToDo 1)) ) ) ) ) ) ) ; **************************** ; * General CleanUp routine ; **************************** ; (procedure cleanUp ( ; **************************** ; * remove temporary assignment ; **************************** ; (makeassign "CEDINSTALL") ; **************************** ; * exit the program. ; **************************** ; (if (= DisplayReadMe 1) ( (if (= serializeAfterInstall 1) ( (message ("Once the Proceed button is pressed, %s will be run so that you may serialize it.\n" ProductName) "\n" ("This panel will stay up until %s is serialized or until it exits because of an error in serializing the program.\n" ProductName) "\n\n" ("Press the Proceed button to serialize %s, or Abort Install to exit before serialization can begin.\n" ProductName)) (execute ("RAM:startCED \"%s\"" CEDDir)) ) ) (if (< OSVersion 37) (run ("c:run %s:C/More %s:ReadMe" DiskInstall DiskInstall)) (if (>= OSVersion 39) (run ("run SYS:Utilities/MultiView %s:ReadMe" DiskInstall)) (run ("run %s:C/More %s:ReadMe" DiskInstall DiskInstall)) ) ) (set deleteFileName "RAM:startCED") (deleteIfExists) ) ) (complete 100) (if (= DisplayReadMe 1) (exit) (exit (quiet)) ) ) ) ; ************************************************************************* ; * ACTUAL START OF SCRIPT ; * ; * Ask all questions for the user now, do all of the work later. ; ************************************************************************* ; (onerror (cleanUp) ) ; **************************** ; * set the default destination to SYS:Utilities. ; **************************** ; (set @default-dest "C:") (set defaultUtilDir "SYS:Utilities") (set defaultScriptDir "REXX:") (setPkgOpts) ; **************************** ; * if (PkgOpts & 0) or (PkgOpts & 2), ask the user which locale files to install, ; * but don't actually do it yet. ; **************************** ; ;+++(message ("WB %ld / OS %ld" WBVersion OSVersion)) (if (AND (OR (IN PkgOpts 0) (IN PkgOpts 2)) (>= WBVersion 38)) ( (set LanguageID 0) ; default language is 0 (English) (set TotalFiles (+ TotalFiles 1)) ; 1 set of locale files (set LanguageID (askoptions (prompt ("Besides English, select the preferred languages in which you might possibly run the %s programs." ProductName)) (help "You should select all the possible languages you want menu and requester text to be displayed in. " "At this time, the only alternative to English is Deutsch (i.e., German translation).\n" "\n" "*** Deutsch\n" "This should be selected if you want the German versions of menus and requester text.\n" "\n" @askchoice-help ) (choices ; bit position 0 -- todo & 1 ; "Deutsch" ) (default LanguageID) ) ) ;+++(message ("LanguageID = %ld" LanguageID)) ) (set LanguageID 0) ) ; **************************** ; * if (PkgOpts & 0), ask the user where to install ProductBaseName ; * but don't actually do it yet. ; **************************** ; (if (IN PkgOpts 0) ; if bit position 0 is on ( (set continueOn 0) (set DirPath @default-dest) (while (<> continueOn 1) ( (set setDirPathWhy ("where you want to install %s (%s and %s programs)." ProductName ProductBaseName ActivatorName)) (set setDirPathHelp "For Workbench users, you should place these programs in a directory that can be accessed from the Workbench screen. For CLI/Shell users, you can place them in your C: directory (or any other directory in your search path).\n") (set DirPath DirPath) (setDirPath) (if (= 1 (askbool (prompt ("\n%s and %s (the %s Activator) will be installed in the following directory:\n\n%s\n\n\nIs this correct?" ProductBaseName ActivatorName ProductBaseName DirPath)) (help ("This panel displays what you have told the Installer is the directory where %s and %s will be installed. " ProductBaseName ActivatorName) "It is so that you know exactly where the files will be placed.\n" "\n" "To select a different directory, press the No button. Otherwise, press the " "Yes button to proceed with the installation process.\n"))) (set continueOn 1) ) ) ) (set CEDDir DirPath) (set @default-dest CEDDir) (set TotalFiles (+ TotalFiles 2)) ; CED + icon (set TotalFiles (+ TotalFiles 2)) ; ED + icon (set TotalFiles (+ TotalFiles 1)) ; ENVARC:CED default file (set TotalFiles (+ TotalFiles 1)) ; ENV:CED default file (if (AND (= (expandpath "C:") (expandpath CEDDir)) (= 1 (exists "C:Ed"))) (if (= @user-level 2) ( (set backupOldED (askbool (prompt "\nDo you want to backup the \"ED\" program which is currently installed in your C: directory?") (help ("The %s program that comes with the %s package has the same name as " ActivatorName ProductName) "Commodore's \"Ed\" editor. To avoid overwriting this file, you can choose to rename it.\n" "\n" "The installation will try to determine if the old version is Commodore's \"Ed\" program " "(in which case it will be renamed to \"Ed.CBM\") or if it is an old copy of the " ("%s program that comes as part of the %s package (in which case it will be overwritten).\n" ActivatorName ProductName)))) ) (set backupOldED 1) ) ) (if (= @user-level 2) ( (set serializeAfterInstall (askbool (prompt ("\n\nDo you want to serialize the %s program after installing it?" ProductName)) (help ("The %s program needs to be serialized before it can be run.\n" ProductName) "\n" @askbool-help) (default 1))) ) (set serializeAfterInstall 1) ) (onerror (cleanUp) ) ) ) ; **************************** ; * if (PkgOpts & 1), ask the user where to install MetaMac, ; * but don't actually do it yet. ; **************************** ; (if (IN PkgOpts 1) ; if bit position 1 is on ( (set setDirPathWhy "where you want to install the MetaMac utility.") (set setDirPathHelp ("The MetaMac utility can either be installed in the same directory as %s, or where you normally keep your utility programs.\n" ProductBaseName)) (set DirPath defaultUtilDir) (setDirPath) (set MetaMacDir DirPath) (set defaultUtilDir DirPath) (set TotalFiles (+ TotalFiles 2)) ; 1 program + 1 icon ) ) ; **************************** ; * if (PkgOpts & 2), ask the user where to install RecoverCEDFiles, ; * but don't actually do it yet. ; **************************** ; (if (IN PkgOpts 2) ; if bit position 2 is on ( (set setDirPathWhy "where you want to install the RecoverCEDFiles utility.") (set setDirPathHelp ("The RecoverCEDFiles utility can either be installed in the same directory as %s, or where you normally keep your utility programs.\n" ProductBaseName)) (set DirPath defaultUtilDir) (setDirPath) (set RecoverCEDFilesDir DirPath) (set defaultUtilDir DirPath) (set TotalFiles (+ TotalFiles 2)) ; 1 program + 1 icon ) ) ; **************************** ; * if (PkgOpts & 3), ask the user where to install the ARexx scripts, ; * but don't actually do it yet. ; **************************** ; (if (IN PkgOpts 3) ; if bit position 3 is on ( (set setDirPathWhy ("where you want to install the %s ARexx scripts." ProductBaseName)) (set setDirPathHelp ("You must select a directory into which the %s ARexx scripts will be installed. We suggest REXX: so that the function and keypad key macros will be available to you.\n" ProductBaseName)) (set DirPath defaultScriptDir) (setDirPath) (set CEDScriptDir DirPath) (set defaultScriptDir DirPath) (set TotalFiles (+ TotalFiles 1)) ; 1 operation ) ) ; **************************** ; * if (PkgOpts & 4), ask the user where to install the package's ReadMe file ; * from disk 1. ; **************************** ; (if (IN PkgOpts 4) ; if bit position 4 is on ( (set setDirPathWhy "where you want to install the ReadMe file.") (set setDirPathHelp "Although the ReadMe file will be displayed at the end of the installation process, you should install it onto your floppy or hard disk for future reference. There is a lot of important information in the ReadMe which for one reason or another was left out of the manual and addendum.\n") (set DirPath @default-dest) (setDirPath) (set ReadMeDir DirPath) (set TotalFiles (+ TotalFiles 2)) ; ReadMe + icon ) ) (if (= 1 (askbool (prompt ("\nAre you upgrading from a previous version of %s?\n" ProductName)) (help ("If you have an old version of %s installed in your system, select the \"Yes\" button. Otherwise, select the \"No\" button.\n" ProductName)))) ( (set removeOldCED (askbool (prompt ("\nShould the old versions of the %s programs be removed before installing the new version?\n" ProductName)) (help "This installation procedure will try to remove all old copies of the " ("%s programs from your floppy or hard drive directories. The " ProductName) "purpose of this is to avoid any conflicts that may arise using " ("different versions of the %s programs with each other.\n" ProductName)))) ) ( (set removeOldCED 0) ) ) (if (< OSVersion 36) (set TotalFiles (+ TotalFiles 4)) ; asl13.library, gadtools13.library, iffparse.library, req.library ) (complete 0) (message "\nShall I proceed with the installation?" (help "Once you press the Proceed button, the selected items will be installed. This is your last chance " "to abort this procedure without partially installing the selected files.\n" "\n" "After you press Proceed, you can use the Esc key to abort the installation procedure.\n") ) ; **************************** ; * copy the startCED script so that we don't need to do it later. ; **************************** ; (copyfiles (prompt "") (help "") (source ("%s:startCED" DiskInstall)) (dest "RAM:") ) (onerror (cleanUp) ) ; **************************** ; * copy the emulator libraries (asl13.library, gadtools13.library, iffparse.library) ; * and req.library to the LIBS: directory. ; **************************** ; (if (< OSVersion 36) ( (set addToMeter 3) (incrementMeter) (set copyLibFileName ("%s:Libs/asl13.library" DiskInstall)) (set copyLibFileHelp ("This library is required to run many of the %s programs under AmigaOS 1.3.\n" ProductName)) (set DirPath "LIBS:") (copyLibFile) (set copyLibFileName ("%s:Libs/gadtools13.library" DiskInstall)) (set copyLibFileHelp ("This library is required to run many of the %s programs under AmigaOS 1.3.\n" ProductName)) (set DirPath "LIBS:") (copyLibFile) (set copyLibFileName ("%s:Libs/iffparse.library" DiskInstall)) (set copyLibFileHelp ("This library is required to run many of the %s programs under AmigaOS 1.3.\n" ProductName)) (set DirPath "LIBS:") (copyLibFile) (set copyLibFileName ("%s:Libs/req.library" DiskInstall)) (set copyLibFileHelp ("This library is required to run many of the %s programs under AmigaOS 1.3.\n" ProductName)) (set DirPath "LIBS:") (copyLibFile) ) ) (if (= 1 removeOldCED) (removeOldCEDFiles) ) (if (IN PkgOpts 0) (CEDInstall) ) (if (IN PkgOpts 1) (MetaMacInstall) ) (if (IN PkgOpts 2) (RecoverCEDFilesInstall) ) (if (IN PkgOpts 3) (ARexxScriptInstall) ) (if (IN PkgOpts 4) (ReadMeInstall) ) (if (AND (AND (OR (IN PkgOpts 0) (IN PkgOpts 2)) (>= WBVersion 38)) (<> LanguageID 0)) (LocaleInstall) ) (set DisplayReadMe 1) (cleanUp)