home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 1995-08-30 | 80.2 KB | 3,142 lines
; $VER: Digita Wordworth 4 Special Edition 27/7/95 (German declarations) ; Installer Revision 1 - 27/7/95 ; ©1995 Copyright Digita International (complete 0) (set #ProductName "Wordworth 4") (set #ProductVersion "Special Edition") ; ### VARIABLES ;** The amount of space needed on the hard disk to install (set FullHDSpace 3) (set FullHDLibsSpace 100000) (set Language "deutsch") ; variable for catalog language ;** Various (set FloppyFinished 0) ; ### INSTALL DISK NAMES (set #NumberInstallDisks 3) (set #Install1Disk "Ww4SEInstall-1") (set #Install2Disk "Ww4SEInstall-2") (set #Install3Disk "Ww4SEInstall-3") ;** Archive Names and size of files on DISK 1 (set #WordworthSourceName (cat #Install1Disk ":Archive/Wordworth.lzh")) (set #WwFiles1SourceName (cat #Install1Disk ":Archive/WwFiles1.lzh")) (set #WwFiles3SourceName (cat #Install1Disk ":Archive/WwFiles3.lzh")) (set #CatalogsSourceName (cat #Install1Disk ":Archive/Catalogs.lzh")) (set #RexxSysLibSourceName (cat #Install1Disk ":Archive/RexxSysLib.lzh")) (set #BootDiskFiles (cat #Install1Disk ":Archive/Boot")) (set #SystemFontsSourceName (cat #Install1Disk ":Archive/Fonts.lzh")) ;(set #PrefsSourceName ; (cat #Install1Disk ":Archive/Prefs.lzh")) (set #AmigaGuideSourceName (cat #Install1Disk ":Archive/AmigaGuide.lzh")) (set #ASLSourceName (cat #Install1Disk ":Archive/asl.lzh")) (set #DiskFontSourceName (cat #Install1Disk ":Archive/diskfont.lzh")) (set #FontType1SourceName (cat #Install1Disk ":Archive/IFOnly.lzh")) (set #ModuleOption1SourceName (cat #Install1Disk ":Archive/Draw.lzh")) (set #ModuleOption2SourceName (cat #Install1Disk ":Archive/Picture.lzh")) (set #ModuleOption3SourceName (cat #Install1Disk ":Archive/TextFX.lzh")) ;** Archive Names and size of files on DISK 2 (set #WwProgSourceName (cat #Install2Disk ":Archive/WwProg.lzh")) (set #WwFiles2SourceName (cat #Install2Disk ":Archive/WwFiles2.lzh")) (set #IntelliSourceName (cat #Install2Disk ":Archive/Intelli.lzh")) (set #UFSTSourceName (cat #Install2Disk ":Archive/UFST.lzh")) (set #FloppyOtagsSourceName (cat #Install2Disk ":Archive/OTAGS.lzh")) (set #CustomExtras1SourceName (cat #Install2Disk ":Archive/Tutorials.lzh")) (set #CustomExtras2SourceName (cat #Install2Disk ":Archive/Templates.lzh")) (set #CustomExtras3SourceName (cat #Install2Disk ":Archive/Clipart.lzh")) (set #WwToolsSourceName (cat #Install2Disk ":Archive/WwTools.lzh")) (set #WwHelpSourceName (cat #Install2Disk ":Archive/WwHelp.lzh")) (set #FiltersSourceName (cat #Install2Disk ":Archive/Filters.lzh")) (set #GfxFilter1SourceName (cat #Install2Disk ":Archive/CGM.lzh")) ;** Archive Names and size of files on DISK 3 (set #DictionarySourceName (cat #Install3Disk ":Archive/Dictionary.lzh")) (set #ThesaurusSourceName (cat #Install3Disk ":Archive/Thesaurus.lzh")) ;** Archive names (set #WordworthName "Wordworth.lzh") (set #WwProgName "WwProg.lzh") (set #WwFiles1Name "WwFiles1.lzh") (set #WwFiles2Name "WwFiles2.lzh") (set #WwFiles3Name "WwFiles3.lzh") (set #AmigaGuideName "amigaguide.lzh") (set #RexxSysLibName "RexxSysLib.lzh") (set #SystemFontsName "Fonts.lzh") (set #ASLName "asl.lzh") (set #DiskFontName "diskfont.lzh") ;(set #PrefsName "Prefs.lzh") (set #CatalogsName "Catalogs.lzh") (set #WwHelpName "WwHelp.lzh") (set #ModuleOption1Name "Draw.lzh") (set #ModuleOption2Name "Picture.lzh") (set #ModuleOption3Name "TextFX.lzh") (set #IntelliName "Intelli.lzh") (set #TrueTypeName "TrueType.lzh") (set #WwToolsName "WwTools.lzh") (set #UFSTName "UFST.lzh") (set #FloppyOtagsName "OTAGS.lzh") (set #FontType1Name "IFOnly.lzh") (set #IFlibraryName "DigitaIntellifont.library") (set #FiltersName "Filters.lzh") (set #FiltersFileName "wwfilter.library") (set #AmigaGuideLibraryName "amigaguide.library") (set #GfxFilter1Name "CGM.lzh") (set #CustomExtras1Name "Tutorials.lzh") (set #CustomExtras2Name "Templates.lzh") (set #CustomExtras3Name "Clipart.lzh") (set #DictionaryName "Dictionary.lzh") (set #ThesaurusName "Thesaurus.lzh") (set #Module1Name "Drawing Tools") ;These are the filenames of the expanded modules (set #Module2Name "Picture") (set #Module3Name "TextEffects") ;** Disk Names (set #RamTempFile "RAM:WwTemp") (set #LibsDefault "Libs") (set #SystemFontsDest "Fonts") (set #Font1Name "WW_STANDARD_Pica") (set #Font2Name "Condensed60.font") (set #Font3Name "newtopaz.font") (set #NumFonts 3) (set #Parallel "Parallel") (set #NumNewWwDisks 5) (set #NewWwDiskName "Wordworth4SE") (set #NewWwSysDiskName "Ww4SESystem") (set #NewWwOutlinesDiskName "Ww4SEOutlines") (set #NewWwDictDiskName "Ww4SESpell") (set #NewWwThesDiskName "Ww4SEThes") ;** Envarc drawer and variable names (set #WwDrawerName "Wordworth") (set #WwFontsEnvName "WwFonts") ;** HD Drawer Names (set #DrawerName "Wordworth4SE") (set #Wordworth2DrawerName "Wordworth2") (set #WordworthSEDrawerName "Wordworth") (set #ModulesName "Modules") (set #ModDisName "Storage") (set #WwCatalogsName "Catalogs") (set #WwFilesDrawerName "WwFiles") (set #WwFiltersName "Filters") (set #WwPictureFiltersName "Pictures") (set #WwFontsName "WwFonts") (set #WwAgfaName "Intellifont") (set #WwPSName "PostScript") (set #WwTTName "TrueType") (set #WwUFSTName "UFST") (set #WwHDHelpName "Help") (set #DocsName "Documents") (set #TemplatesName "Templates") (set #ClipartName "ClipArt") (set #SpellName "Spell") (set #WwToolsDrawerName "WwTools") (set #BulletOutlinesDest "Fonts:_bullet_outlines") (set #LocaleName "Locale") (set #WwDevsDest (cat #NewWwDiskName ":Devs")) (set #WwPrefsDest (cat #NewWwDiskName ":Prefs")) (set #WwEnvArcDest (cat #NewWwDiskName ":Prefs/Env-Archive")) (set #WwEnvArcSysDest (cat #NewWwDiskName ":Prefs/Env-Archive/sys")) (set #WwSDest (cat #NewWwDiskName ":s")) (set #WwToolDest (cat #NewWwDiskname ":Wordworth")) (set #DocsTool "DOCS") (set #ClipartTool "CLIPART") (set #DeviceTool "DEVICE") (set #FiltersTool "FILTERS") (set #ModulesTool "MODULES") (set #HelpTool "HELP") (set #CatalogsTool "CATALOGS") (set #WwFilesTool "WWFILES") (set #WwSpellLibTool "WWSPELLLIB") (set #WwSystemTool "WWSYSTEM") (set #DocDefaultTool "Wordworth") (set #OldUserDictName "User_Dictionary") (set #OldAutoCorrectName "AutoCorrect.txt") (set #TempUserDictName "User_Dictionary.Temp") (set #TempAutoCorrectName "AutoCorrect.txt.Temp") ; ### STRING DEFINITIONS ;** Various Strings (set #ProgName (cat (cat #ProductName " ") #ProductVersion)) (set #Welcome-Help (cat "\nFalls bei der Installation irgendwelche Probleme auftreten sollten, sollten " "Sie das \"Help\"-Symbol anklicken und den Hilfstext aufmerksam lesen. " "\nSollte sich das Problem nicht lösen lassen, wenden Sie sich bitte an " "unseren Kundendienst, wie im Benutzerhandbuch beschrieben." )) (Set #HDBootedFromFloppy (cat "Es scheint, als wollten Sie auf Festplatte installieren, hätten " "aber von Diskette gestartet. Dies funktioniert nicht.\n\n" "Starten Sie Ihren Amiga ohne Disketten in den Laufwerken neu, " "damit er von der Festplatte startet, und installieren Sie " "" #ProgName " erneut." ) ) (set #BadKick (cat #ProgName " Workbench 2.04 oder höher zum Betrieb erforderlich" )) (set #BadASL (cat #ProgName " asl.library Version 38 oder höher zum Betrieb erforderlich." )) (set #BadDiskFont (cat #ProgName " diskfont.library Version 37 oder höher zum Betrieb erforderlich." )) (set #BadASLandDiskFont (cat #ProgName " erfordert Version 38 der asl.Library und Version 37 der " "diskfont.Library (oder höher)." )) (set #CreateDiskPrompt1 "\n\nFolgende erstellen '") (set #CreateDiskPrompt2 "' diskette?") (set #ChoiceContinue "Ja") (set #ChoiceSkip "Diesen Teil überspringen") (set #CreateDiskHelp (cat "\nWenn Sie " #ProgName " als geübter Benutzer oder Experte installieren, " "können Sie bestimmen, welche Disks erstellt werden sollen. Dies wäre z.B. dann sinnvoll, wenn " "die Arbeitsdiskette " #NewWwDictDiskName " beschädigt würde, und Sie eine neue " "erstellen müßten.\n\n Klicken Sie auf '" #ChoiceContinue "', wenn Sie diese " "Diskette erstellen möchten.\nAndernfalls klicken Sie auf '" #ChoiceSkip "'." ) ) (set #ReBoot (cat "Führen Sie nach der Installation des Programms einen Neustart des Rechners " " durch, bevor Sie " #Progname " starten." )) (set #FloppyWorkingMsg (cat "\n\n\nBitte warten...\n\n" #ProgName " wird auf Ihre Disketten installiert." )) (set #HardDiskWorkingMsg (cat "\n\n\nBitte warten...\n\n" #ProgName " wird auf Ihre Festplatte installiert." )) (set #FormatWorkingMsg (cat "Bitte warten - Diskette wird formatiert." )) (set #FloppyFinishedMsg (cat "\nNach Anklicken von 'Weiter' ist die Diskette mit dem Namen \"" #NewWwDiskName "\" in das interne Laufwerk des Amiga einzulegen und ein Neustart durchzuführen." )) (set #CheckStartup (cat "\n\n\nBitte warten...\n\nDas Installationsprogramm prüft Ihre Systemkonfiguration." )) (set #DearchivingMsg (cat "\n\n\nEinen kleinen Moment, bitte..." )) ;** Disk Messages (set #FloppyBackupsMsg (cat "\nWICHTIG\n\nDas Installationsprogramm erstellt Ihre " #Progname "-Disks.\n\n" "Um die Anzahl der Diskettenwechsel zu verringern, sollten Sie die neu " "erstellten Disketten (z.B. '" #NewWwDiskName "') in das interne Laufwerk einlegen, " "wenn Sie dazu aufgefordert werden, und die Wordworth-Installationsdisketten " "in das externe Laufwerk." )) (set #BlankDiskWarning (cat "\nBitte legen Sie eine Leerdiskette in das interne\n" "Diskettenlaufwerk und klicken Sie dann auf 'Weiter'." "\n\nACHTUNG: Dieser Vorgang löscht alle Informationen, die " "sich evtl. auf der Diskette befinden." )) (set #FloppyWarningHelp (cat "\nBei diesem Vorgang wird zum Löschen und Vorbereiten " "der Diskette im internen Laufwerk für Wordworth der " " 'format'-Befehl verwendet. " "\n\nAktivieren Sie auf jeden Fall den Schreibschutz Ihrer " "Originaldisketten, bevor Sie eine Arbeitskopie erstellen, " "und bewahren Sie die Originale dann an einem sicheren Platz auf." "\n\nBevor Sie auf 'Weiter' klicken, sollten Sie auch Ihre " "Arbeitskopien schreibschützen." )) (set #NotBlankMsg1 (cat "\nSie haben die Diskette \"" )) (set #NotBlankMsg2 (cat "\" im internen Laufwerk.\n\nBitte " "ersetzen Sie diese durch eine Leerdiskette, bevor " "Sie auf 'Weiter' klicken." )) (set #FormatError (cat "\nBeim Formatieren dieser Diskette ist ein Fehler aufgetreten.\n\n" "Vergewissen Sie sich vor dem Anklicken von 'Weiter', daß " "eine Diskette eingelegt ist, oder legen Sie eine andere " "Diskette ein und versuchen Sie es erneut." )) (set #FormatErrorHelp (cat "\nBeim Formatieren der Diskette ist ein Fehler aufgetreten. " "Dies kann verschiedene Ursachen haben, meist liegt es jedoch " "an einer defekten Diskette oder einem defekten Laufwerk.\n " "Wenn diese beiden Faktoren als Ursache auszuschließen sind, " "wenden Sie sich bitte an unseren Kundendienst. Die Kontaktadresse " "entnehmen Sie bitte dem Benutzerhandbuch zu Wordworth. " )) (set #FormatCompleteMsg1 (cat " erstellt.\n\nBitte Diskette aus dem " "internen Laufwerk nehmen und mit folgendem Namen versehen: \"" )) (set #FormatCompleteMsg2 (cat "\", danach auf 'Weiter'" " klicken." )) (set #FormatCompleteMsgLast (cat "\". Installation durch Anklicken von 'Weiter' fortsetzen." )) (set #InsertDiskMsg (cat "\nBitte Diskette mit folgendem Namen einlegen:\n\n" )) ;** Install Stuff (set #DestChoicePrompt (cat "\n\n\nWo soll " #ProgName " installiert werden?" )) (set #DestChoicePrinterPrompt (cat "\n\n\nWo haben Sie " #ProgName " installiert?" )) (set #FloppyChoiceMsg (cat "Auf Disketten" )) (set #HardDiskChoiceMsg (cat "Auf einer Festplatte" )) (set #DestChoiceHelp (cat "\nKlicken Sie auf \"Auf einer Festplatte\", um " "" #ProgName " auf Festplatt zu installieren.\n\n" "Klicken Sie auf \"Auf Disketten\", um " "" #ProgName " auf einen Satz Arbeitsdisketten zu installieren.\n\n\n" )) (set #DestChoicePrinterHelp (cat "\nKlicken Sie auf \"Auf einer Festplatte\", wenn Sie " "" #ProgName " auf Ihrer Festplatte installiert haben.\n\n" "Klicken Sie auf \"Auf Disketten\", wenn Sie " "" #ProgName " auf einen Satz Arbeitsdisketten installiert haben.\n\n\n" )) ;** Other strings (set #Unpackmsg1 "Dateien werden entpackt ") (set #Unpackmsg2 " nach ") (set #Unpackmsg3 "\n\nBitte warten...") (set #Unpackmsg4 "Dateien werden entpackt - einen Moment, bitte...") (set #DearchiveModulesmsg "Module werden entpackt und installiert") (set #DearchiveFontmsg "Fontunterstützung wird entpackt und installiert\n\n") (set #DearchiveGfxmsg "Grafikfilter werden entpackt und installiert") (set #DearchivingSpellmsg "Rechtschreibprüfung wird installiert") (set #DearchiveThesmsg "Thesaurus wird installiert") (set #InstallMinmsg "Minimalkonfiguration wird installiert") (set #InstallOthermsg "Alle Module werden installiert") (set #DeleteOldmsg "Alte Wordworth-Version wird gelöscht - bitte warten" ) (set #Creatingmsg "Disk wird erstellt ") (set #WorkingPrintermsg "Drucker wird installiert - bitte warten...") (set #FormatChoiceprompt (cat "\n\nWordworth muß zur Installation 7 Disketten formatieren und benennen. " "Möchten Sie:" )) (set #FormatChoicemsg1 "Einige Disketten normal formatieren") (set #FormatChoicemsg2 "Einige Leerdisketten schnellformatieren") (set #FormatChoice-Help (cat "Dieses Installationsprogramm muß zur Installation von " #ProgName " sieben " "Disketten erstellen. Jede Diskette muß vorher formatiert und mit einem " "Namen versehen werden. " "Wählen Sie '" #FormatChoicemsg1 "', wenn Sie die Disks normal formatieren " "möchten, oder " "'" #FormatChoicemsg2 "', um schon vorher bereits einmal " "mit dem Fast File System formatierte Disketten " "schnellzuformatieren. " )) (set #Installingmsg1 " " #Progname " wird installiert - Bitte warten...") (set #InstallBOPrompt (cat "\nMöchten Sie Ihre Compugraphic-Fonts der Workbench zur Verwendung " "mit " #ProgName " installieren?" )) (set #InstallBOChoice1 "Ja") (set #InstallBOChoice2 "Nein") (set #InstallBOPrompt-Help (cat "\Möglicherweise befinden sich im Verzeichnis 'bullet_outlines' Ihrer Workbench " "Compugraphic-Fonts.\n\nWenn Sie auf '" #InstallBOChoice1 "' klicken, " "können Sie diese Fonts auch in " #ProgName " verwenden. " "\nKlicken Sie auf '" #InstallBOChoice2 "' wenn diese Fonts nicht installiert " "werden sollen." )) (set #BadBoot (cat "Sie müssen Ihren Rechner mit der Disk \"" #Install1Disk "\" " "im internen Laufwerk starten, bevor Sie " #ProgName " " "installieren oder starten. " )) (set #Wwdiskhelp (cat "\nWenn Sie sicher sind, daß die richtige Diskette eingelegt ist, " "und Sie trotzdem nicht fortfahren können, ist vermutlich der " "Name der Diskette nicht korrekt.\n " "Der Name dieser Diskette sollte \""#NewWwDiskName "\" lauten " "und es dürfen keine Leerzeichen davor, danach oder darin vorkommen.\n\n" "Um den Diskettennamen zu korrigieren, ist deren Piktogramm (d.h. die " "kleine Grafik, die beim Einlegen auf der Workbench erscheint) anzuklicken " "und danach der Name mit der Funktion 'Umbenennen' im Piktogramm-Menü " "in \"" #NewWwDiskName "\" zu korrigieren. " ) ) (set #diskhelp (cat "\nWenn Sie sicher sind, daß sich die richtige Diskette eingelegt ist " "und Sie trotzdem nicht fortfahren können, ist vermutlich der " "Name der Diskette nicht korrekt. Stellen Sie sicher, daß dem Namen " "nicht 'copy_of_' vorangestellt ist und davor oder danach keine Leerzeichen vorkommen.\n\n\n" @askdisk-help ) ) (set #HardDiskDestChoiceMsg (cat "Wo möchten Sie das Verzeichnis \n" #ProgName " erstellen?" )) (set #InstallLibChoice1 "Ja - ersetzen") (set #InstallLibChoice2 "Nein") (set #OldASLLibraryMsg (cat "Sie verfügen über eine alte Version der asl.library. " #ProgName " benötigt mindestens Version 38. " "Möchten Sie Ihre bestehende Version durch Version 38 ersetzen?" )) (set #OldASLLibraryHelp (cat #ProgName " funktioniert nicht korrekt, wenn nicht mind. Version 38 " "der asl.library (Workbench 2.1 oder höher) installiert ist.\n\n" "Wählen Sie\"" #InstallChoice1 "\", um Ihre Version durch V.38 zu ersetzen. " "und installieren Sie dann " #ProgName ".\nWählen Sie \"" #InstallChoice2 "\", wenn " "Sie Version nicht installieren und diese Installation abbrechen möchten." )) (set #OldAmigaGuideLibraryMsg (cat "Ihre Version der amigaguide.library ist veraltet.\n\n" #ProgName " erfordert mindestens die Version 34.11 dieser " "library.\nMöchten Sie Ihre Version durch die Version 34.11 ersetzen?" )) (set #OldAmigaGuideLibraryHelp (cat #ProgName " erfordert zum korrekten Betrieb mindestens die Version 34.11 " "der amigaguide.library (Workbench 2.1 oder höher).\n\n" "Wählen Sie \"" #InstallChoice1 "\", um Ihre Version durch die Version 34.11 " "zu ersetzen, und installieren Sie dann " #ProgName ".\nWählen Sie \"" #InstallChoice2 "\", wenn die " "Version 34.11 nicht installiert werden soll." )) (set #OldRexxSysLibLibraryMsg (cat "Ihre Version der RexxSysLib.library ist veraltet.\n\n" #ProgName " erfordert mindestens die Version 36 dieser " "library.\nMöchten Sie Ihre Version durch die Version 36 ersetzen?" )) (set #OldRexxSysLibLibraryHelp (cat #ProgName " erfordert zum korrekten Betrieb mindestens die Version 36" "der RexxSysLib.library (Workbench 2.0 oder höher).\n\n" "Wählen Sie \"" #InstallChoice1 "\", um Ihre Version durch die Version 36 " "zu ersetzen, und installieren Sie dann " #ProgName ".\nWählen Sie \"" #InstallChoice2 "\", wenn die " "Version 36 nicht installiert und das Installationsprogramm verlassen werden soll." )) (set #OldDiskFontLibraryMsg (cat "Ihre Version der diskfont.library ist veraltet.\n\n" #ProgName " erfordert mindestens die Version 37 dieser " "library.\nMöchten Sie Ihre Version durch die Version 37 ersetzen?" )) (set #OldDiskFontLibraryHelp (cat #ProgName " erfordert zum korrekten Betrieb mindestens die Version 37" "der diskfont.library (Workbench 2.04 oder höher).\n\n" "Wählen Sie \"" #InstallChoice1 "\", um Ihre Version durch die Version 37 " "zu ersetzen, und installieren Sie dann " #ProgName ".\nWählen Sie \"" #InstallChoice2 "\", wenn die " "Version 37 nicht installiert und das Installationsprogramm verlassen werden soll." )) (set #HDLibsDestChoiceMsg1 (cat "Wo sollen die Bibliotheken installiert werden?" )) (set #HardDiskDestChoiceHelp (cat "Wählen Sie das Verzeichnis zur Installation von " #ProgName "aus und klicken Sie auf 'Weiter' (ein neues Verzeichnis mit dem Namen \"" #DrawerName "\" wird erstellt und enthält das Programm " #ProgName " .)" )) (set #HDLibsDestChoiceHelp (cat "Wählen Sie das Verzeichnis zur Installation der " "Wordworth-Bibliotheken aus und " "klicken Sie dann auf 'Weiter' (voreingestellt ist 'Libs:').\n" "Wenn Sie als Bestimmungsort nicht SYS:libs wählen, " "muß dieser dem Suchpfad für die 'Libs:' hinzugefügt werden." )) (set #HardDiskDestChoiceConfirmMsg1 (cat "\nSoll das Programm " #ProgName " in folgendem Zielverzeichnis installiert werden? " "\n\n\"" )) (set #HardDiskDestChoiceConfirmMsg2 (cat "\"\n\n\n\n(Ein neues Verzeichnis mit dem Namen \"" #DrawerName "\" wird erzeugt, " "und enthält das Programm " #ProgName ".)" )) (set #HardDiskDestChoiceConfirmHelp (cat "Klicken Sie auf Ja, um das Zielverzeichnis zu bestätigen.\n\nKlicken Sie auf Nein, " "wenn Sie ein anderes Zielverzeichnis wählen möchten. " )) (set #DrawerExistsMsg (cat "\nEin Verzeichnis mit dem Namen \"" #DrawerName "\" existiert bereits " "im gewählten Zielverzeichnis. \n\n Möchten Sie es ersetzen oder " "ein neues Zielverzeichnis auswählen?\n\n" )) (set #DrawerExistsChoice1 "Ersetzen") (set #DrawerExistsChoice2 "Neues Zielverzeichnis wählen") (set #DrawerExistsHelp (cat "\nSie haben ein Zielverzeichnis ausgewählt, in dem das Verzeichnis \"" #DrawerName "\" schon installiert ist.\n\nKlicken Sie auf \"" #DrawerExistsChoice1 "\", um dessen Inhalt mit dieser neuen Version " "von " #ProgName " zu überschreiben.\nKlicken Sie auf \"" #DrawerExistsChoice2 "\", um ein " "neues Zielverzeichnis auszuwählen. \n\n" "Wenn Sie \"" #DrawerExistsChoice1 "\" auswählen, sollten Sie sicherstellen, " "daß Sie über Sicherheitskopien aller Dokumente verfügen, die Sie noch benötigen. " )) (set #NoDiskSpaceMsg1 (cat "\nAuf Ihrer Festplatte ist zu wenig Platz frei, um " #ProgName " zu installieren. Sie benötigen mindestens " )) (set #NoDiskSpaceMsg2 (cat "MB freien Speicherplatz.\n\nKlicken Sie entweder auf 'Installation abbrechen', um diese " "Installation zu beenden und unbenötigte Dateien zu löschen, oder auf 'Weiter', " " wenn Sie eine andere Partition auswählen möchten. " )) (set #NoLibSpaceMsg1 (cat "\nZu wenig freier Speicherplatz auf '" )) (set #NoLibSpaceMsg2 (cat "' um die Bibliothken von" #ProgName " zu installieren. Sie benötigen mindestens " )) (set #NoLibSpaceMsg3a (cat "K freien Speicher. " )) (set #NoLibSpaceMsg3b (cat "K freien Festplattenspeicher.\n\nKlicken Sie entweder auf \"Installation abbrechen\",um den " "Installationsvorgang zu beenden und einige Dateien von der Festplatte zu löschen, oder auf \"Weiter\", um " #ProgName " auf einer anderen Partition zu installieren." )) (set #LibAbortMsg1 (cat "Zu wenig Platz auf Ihrer Systempartition, um die " #ProgName " Bibliotheken zu installieren. Sie haben " )) (set #LibAbortMsg2 (cat "K frei, benötigen jedoch mindestens " )) (set #LibAbortMsg3 (cat "K freien Plattenspeicher. " "Bitte löschen Sie zunächst einige unbenötigte Dateien " "und führen Sie die Installation erneut durch." )) (set #ArchiveAbortMsg1 (cat "Ein Fehler trat auf beim Entpacken der Dateien '" )) (set #ArchiveAbortMsg2 (cat "' auf Ihre Festplatte. Versuchen Sie, in ein anderes Verzeichnis oder auf eine " "andere Partition zu entpacken oder wenden Sie sich an unseren Kundendienst. " )) (set #AskEnvArc (cat "\nAuf welches Laufwerk oder in welches Verzeichnis sollten die Umgebungavariablen " "(ENVARC:) gespeichert werden?" )) (set #AskEnvArcHelp (cat "\nIn diesem Abschnitt können Sie bestimmen, wo " #ProgName " seine Umgebungseinstellungen speichert.\n\nDiese sollten normalerweise " "im Verzeichnis \"ENVARC:\" Ihrer Systemdisk oder -partition gespeichert werden.\n\n" @askdir-help )) (set #AskEnvArcStartup (cat "\nIhr System enthält keine Zuweisung für " "ENVARC:. Soll diese in die Datei \"S:User-Startup\" geschrieben werden?" )) (set #AskEnvArcStartupHelp (cat "\nWählen Sie Ja, um die Zuweisung in die User-Startup zu schreiben. \n\n" @startup-help )) (set #AskEnvStartup (cat "\nIhr System enthält keine Zuweisung für " "ENV:. Soll diese in die Datei \"S:User-Startup\" geschrieben werden?" )) (set #AskEnvStartupHelp (cat "\nWählen Sie Ja, um die Zuweisung in die User-Startup zu schreiben.\n\n" @startup-help )) (set #DriverUsedmsg1 (cat "\n\nDer Workbench-Druckertreiber für den Drucker '" )) (set #DriverUsedmsg2 (cat "' ist nun installiert." )) (set #InstallOldWordworthFontsmsg (cat "\nWie Sie Ihre vorhandenen Agfa Fonts mit " #ProgName " nutzen, entnehmen Sie bitte dem Abschnitt 'Wie Sie...' der WW-Hilfefunktion." )) (set #InstallingFontsmsg "Bitte warten... Fonts werden installiert.") (set #LocaleName "Locale") (set #InstallationCompletemsg "\nDruckerinstallation abgeschlossen!\n") (set #InstallPicassoMsg "\nIst Ihr Rechner mit einer Picasso oder einer anderen Grafikkarte ausgestattet?") (set #InstallPicassoYes "Ja") (set #InstallPicassoNo "Nein") (set #InstallPicassoHelp (cat "\n" #ProgName " ist nun kompatibler zu Grafikkarten wie Retina oder Picasso." "\n\nUm Wordworth mitzuteilen, daß Ihr Rechner mit einer Grafikkarte ausgestattet ist, muß dem Wordworth-Programmpiktogramm ein Tool Type (Merkmal) hinzugefügt werden." "\n\nKlicken Sie auf Ja, um zur Verwendung einer Grafikkarte das Programmpiktogramm mit dem Picasso-Tool Type zu versehen." "\nWenn Sie Nein anklicken, wird der Tool Type-Eintrag nicht vorgenommen." ) ) ; ### PROCEDURE DEFINITIONS ;** Set up Destinations (Procedure @SetUpDestinationsHD ( (set #InsideHDDest (tackon #DestDrawer #DrawerName)) (set #HDModulesDest (tackon #InsideHDDest #ModulesName)) (set #HDModDisDest (tackon #HDModulesDest #ModDisName)) (set #HDCatalogsLangDest (tackon #InsideHDDest #WwCatalogsName)) (set #HDCatalogsDest (tackon #HDCatalogsLangDest Language)) (set #HDWwFiles1Dest (tackon #InsideHDDest #WwFilesDrawerName)) (set #HDWwFiles2Dest (tackon #InsideHDDest #WwFilesDrawerName)) (set #HDWwFiles3Dest (tackon #InsideHDDest #WwFilesDrawerName)) (set #HDWwFiltersDest (tackon #InsideHDDest #WwFiltersName)) (set #HDWwPictureFiltersDest (tackon #HDWwFiltersDest #WwPictureFiltersName)) (set #HDWwFontsDest (tackon #InsideHDDest #WwFontsName)) (set #HDWwAgfaDest (tackon #HDWwFontsDest #WwAgfaName)) (set #HDWwPSDest (tackon #HDWwFontsDest #WwPSName)) (set #HDWwTTDest (tackon #HDWwFontsDest #WwTTName)) (set #HDWwUFSTDest (tackon #HDWwFontsDest #WwUFSTName)) (set #HDWwHelpDest (tackon #InsideHDDest #WwHDHelpName)) (set #HDDocsDest (tackon #InsideHDDest #DocsName)) (set #HDTemplatesDest (tackon #HDDocsDest #TemplatesName)) (set #HDClipartDest (tackon #InsideHDDest #ClipartName)) (set #HDDictDest (tackon #InsideHDDest #SpellName)) (set #HDThesDest (tackon #InsideHDDest #SpellName)) (set #HDWwToolsDest (tackon #InsideHDDest #WwToolsDrawerName)) ) ) ;** define all hard disk destinations (Procedure @SetHardDiskDestinations ( (set #ModulesDest #HDModulesDest) (set #ModDisDest #HDModDisDest) (set #CatalogsLangDest #HDCatalogsLangDest) (set #CatalogsDest #HDCatalogsDest) (set #WwFiles1Dest #HDWwFiles1Dest) (set #WwFiles2Dest #HDWwFiles1Dest) (set #WwFiles3Dest #HDWwFiles1Dest) (set #WwFiltersDest #HDWwFiltersDest) (set #WwPictureFiltersDest #HDWwPictureFiltersDest) (set #WwFontsDest #HDWwFontsDest) (set #WwAgfaDest #HDWwAgfaDest) (set #WwPSDest #HDWwPSDest) (set #WwTTDest #HDWwTTDest) (set #WwUFSTDest #HDWwUFSTDest) (set #WwHelpDest #HDWwHelpDest) (set #DocsDest #HDDocsDest) (set #TemplatesDest #HDTemplatesDest) (set #ClipartDest #HDClipartDest) (set #DictDest #HDDictDest) (set #ThesDest #HDThesDest) (set #WwToolsDest #HDWwToolsDest) ) ) ;** define all floppy disk destinations (Procedure @SetFloppyDiskDestinations ( (set #LocaleDest (cat #NewWwDiskName ":" #LocaleName)) (set #ModulesDest (cat #NewWwDiskName ":" #ModulesName)) (set #ModDisDest (cat #NewWwDiskName ":" #ModulesName "/" #ModDisName)) (set #CatalogsLangDest (cat #NewWwDiskName ":" #WwCatalogsName)) (set #CatalogsDest (cat #NewWwDiskName ":" #WwCatalogsName "/" Language)) (set #LibsDest (cat #NewWwDiskName ":" #LibsDefault)) (set #SysFontsDest (cat #NewWwDiskName ":" #SystemFontsDest)) (set #WwFilesDest (cat #NewWwDiskName ":" #WwFilesDrawerName)) (set #WwFiles2Dest (cat #NewWwSysDiskName ":" #WwFilesDrawerName)) (set #WwFilterLibDest (cat #NewWwOutlinesDiskName ":" #WwFilesDrawerName)) (set #WwFiltersDest (cat #NewWwOutlinesDiskName ":" #WwFiltersName)) (set #WwPictureFiltersDest (cat #NewWwOutlinesDiskName ":" #WwFiltersName "/" #WwPictureFiltersName)) (set #WwFontsDest (cat #NewWwOutlinesDiskName ":" #WwFontsName)) (set #WwFontsDestOutlines (cat #NewWwOutlinesDiskName ":" #WwFontsName)) (set #WwAgfaDest (cat #NewWwOutlinesDiskName ":" #WwFontsName "/" #WwAgfaName)) (set #WwPSDest (cat #NewWwOutlinesDiskName ":" #WwFontsName "/" #WwPSName)) (set #WwTTDest (cat #NewWwOutlinesDiskName ":" #WwFontsName "/" #WwTTName)) (set #WwUFSTDest (cat #NewWwOutlinesDiskName ":" #WwFontsName "/" #WwUFSTName)) (set #DocsDest (cat #NewWwOutlinesDiskName ":" #DocsName)) (set #TemplatesDest (cat #DocsDest "/" #TemplatesName)) (set #ClipartDest (cat #NewWwSysDiskName ":" #ClipartName)) (set #DictDest (cat #NewWwDictDiskname ":" #SpellName)) (if (= @language "deutsch") ( (set #ThesDest (cat #NewWwThesDiskname ":" #SpellName)) ) ( (set #ThesDest (cat #NewWwDictDiskname ":" #SpellName)) ) ) (set #WwToolsDest (cat #NewWwSysDiskName ":" #WwToolsDrawerName)) (set #WwHelpDest (cat #NewWwOutlinesDiskname ":" #WwHDHelpName)) ) ) ;** Procedure to copy 'Unpackfile' archive to RAM:Archives (procedure @CopyArchives ( (copyfiles (source UnpackFileDisk) (dest "RAM:Archives") (all) ) ) ) ;** Procedure to decompress file set in 'UnpackFile' to 'UnpackDest' (procedure @UnpackFiles ( (working #Unpackmsg1 UnpackFile #Unpackmsg2 UnpackDest #Unpackmsg3) (set ExpandName UnpackFile) (set #ArchiveError 0) (set RunLHA (cat "LHA -I -m e \"" ExpandName "\" \"" UnpackDest "\"") ) (set #ArchiveError (run RunLHA)) (if (> #ArchiveError 0) ( (set #ArchiveAbortMsg (cat #ArchiveAbortMsg1 ExpandName #ArchiveAbortMsg2)) (abort #ArchiveAbortMsg) ) ) ) ) ;** Procedure to Check if Wordworth already exists in destination ;** Replace or choose again if so (procedure @CheckExistsAlready ( (if (exists (tackon #DestDrawer #DrawerName)) ; if there is already a drawer named Wordworth3 ( (set ChooseAgainAnswer (askbool (prompt #DrawerExistsMsg) (choices #DrawerExistsChoice1 #DrawerExistsChoice2) (help #DrawerExistsHelp) (default 1) ) ) (if (= ChooseAgainAnswer 0) ( (set WwNotExists 0) ) (;else (@PreserveTextFiles) (@DeleteOldWordworth3) (set WwNotExists 1) ) ) ) (;else (set WwNotExists 1) ) );endif ) ) ;** Procedure to choose the hard disk destination (procedure @FindHDDest ( (set WwNotExists 0) (while (= WwNotExists 0) ( (@ChooseHDDest) (while (< (getdiskspace #DestDrawer) HDSpaceNeededBytes) ( (if (< (getdiskspace #DestDrawer) HDSpaceNeededBytes) ( (if (= @user-level 0) ( (user 2) (set #UserNovice 1) ) ) (message #NoDiskSpaceMsg1 (/ (/ HDSpaceNeededBytes 1024) 1024) #NoDiskSpaceMsg2) (@ChooseHDDest) ) ) ) ) ;end while (@CheckExistsAlready) ) );end while (if (= #UserNovice 1) (user 0) ) ) ) (procedure @ChooseHDDest ( ;** Find default drawer (set #DefaultDest (getassign "Work" "d")) (if (= #DefaultDest "") ( (set #DefaultDest (getassign "HD3" "d")) (if (= #DefaultDest "") ( (set #DefaultDest (getassign "HD2" "d")) (if (= #DefaultDest "") ( (set #DefaultDest (getassign "HD1" "d")) (if (= #DefaultDest "") ( (set #DefaultDest (getassign "DH1" "d")) (if (= #DefaultDest "") ( (set #DefaultDest (getassign "HD0" "d")) (if (= #DefaultDest "") ( (set #DefaultDest "DH0:") (if (= #UserNovice 1) (user 2) ) ) ) ) ) ) ) ) ) ) ) ) ) ;** Ask for destination (set #DestDrawer (askdir (prompt #HardDiskDestChoiceMsg) (help #HardDiskDestChoiceHelp) (default #DefaultDest) ) ) (if (= #UserNovice 1) (user 0) ) ) ) ;** Create all Ww drawers in #DestDrawer and set paths to them (procedure @CreateDrawers ( (set #InsideHDDest (tackon #DestDrawer #DrawerName)) ;** Make the Wordworth drawer (makedir #InsideHDDest (infos)) ;** Make the Modules drawer (set #HDModulesDest (tackon #InsideHDDest #ModulesName)) (makedir #HDModulesDest (infos)) ;** Make the Modules Disabled drawer (set #HDModDisDest (tackon #HDModulesDest #ModDisName)) (makedir #HDModDisDest (infos)) ;** Make the Catalogs drawer (set #HDCatalogsLangDest (tackon #InsideHDDest #WwCatalogsName)) (makedir #HDCatalogsLangDest) ;** Make the language drawer (set #HDCatalogsDest (tackon #HDCatalogsLangDest Language)) (makedir #HDCatalogsDest) ;** Make the WwFiles drawer (just do once for #WwFilesDrawerName) (set #HDWwFiles1Dest (tackon #InsideHDDest #WwFilesDrawerName)) (makedir #HDWwFiles1Dest) ;** Make the Filters drawer (set #HDWwFiltersDest (tackon #InsideHDDest #WwFiltersName)) (makedir #HDWwFiltersDest) ;** Make Picture Filters drawer (set #HDWwPictureFiltersDest (tackon #HDWwFiltersDest #WwPictureFiltersName)) (makedir #HDWwPictureFiltersDest) ;** Make the WwFonts drawer (set #HDWwFontsDest (tackon #InsideHDDest #WwFontsName)) (makedir #HDWwFontsDest (infos)) ;** Make the Agfa drawer (set #HDWwAgfaDest (tackon #HDWwFontsDest #WwAgfaName)) (makedir #HDWwAgfaDest (infos)) ;** Make the PS drawer (set #HDWwPSDest (tackon #HDWwFontsDest #WwPSName)) (makedir #HDWwPSDest) ;** Make the TT drawer (set #HDWwTTDest (tackon #HDWwFontsDest #WwTTName)) (makedir #HDWwTTDest) ;** Make the UFST drawer (set #HDWwUFSTDest (tackon #HDWwFontsDest #WwUFSTName)) (makedir #HDWwUFSTDest) ;** Make the WwHelp drawer (set #HDWwHelpDest (tackon #InsideHDDest #WwHDHelpName)) (makedir #HDWwHelpDest) ;** Make the Docs drawer (set #HDDocsDest (tackon #InsideHDDest #DocsName)) (makedir #HDDocsDest (infos)) ;** Make the Templates drawer (set #HDTemplatesDest (tackon #HDDocsDest #TemplatesName)) (makedir #HDTemplatesDest (infos)) ;** Make the Clipart drawer (set #HDClipartDest (tackon #InsideHDDest #ClipartName)) (makedir #HDClipartDest (infos)) ;** Make the Spell drawer (set #HDDictDest (tackon #InsideHDDest #SpellName)) (makedir #HDDictDest) (set #HDThesDest #HDDictDest) ;** Make the WwTools drawer (set #HDWwToolsDest (tackon #InsideHDDest #WwToolsDrawerName)) (makedir #HDWwToolsDest (infos)) (complete 10) ) ) ;** Procedure to dearchive basic prog files (like WwFiles & program) (procedure @DearchiveProgFiles1 ( (working #DearchivingMsg) (set #FileSourceName #WordworthSourceName) (set #FileSourceDisk #Install1Disk) (@GetDisk) (set UnpackFile #FileSourceName) (set UnpackDest (cat #InsideHDDest "/")) (@UnpackFiles) (set UnpackFile #WwFiles1SourceName) (set UnpackDest (cat #WwFiles1Dest "/")) (@UnpackFiles) (set UnpackFile #WwFiles3SourceName) (set UnpackDest (cat #WwFiles3Dest "/")) (@UnpackFiles) (set UnpackFile #CatalogsSourceName) (set UnpackDest (cat #CatalogsDest "/")) (@UnpackFiles) ) ) ;** Procedure to dearchive second set of basic files from disk 2 (procedure @DearchiveProgFiles2 ( (set #FileSourceName #WwprogSourceName) (set #FileSourceDisk #Install2Disk) (@GetDisk) (set UnpackFile #FileSourceName) (set UnpackDest (cat #InsideHDDest "/")) (@UnpackFiles) (set UnpackFile #WwFiles2SourceName) (set UnpackDest (cat #WwFiles2Dest "/")) (@UnpackFiles) (set UnpackFile #WwHelpSourceName) (set UnpackDest (cat #WwHelpDest "/")) (@UnpackFiles) ) ) ;** Dearchive Filter library (procedure @DearchiveFilterLibrary ( (set #FileSourceName #FiltersSourceName) (set #FileSourceDisk #Install2Disk) (@GetDisk) (set UnPackFile #FileSourceName) (set UnPackDest (cat #WwFiles3Dest "/")) (@UnpackFiles) ) ) ;** Procedure to dearchive Custom modules to hard disk (procedure @DearchiveCustomModulesHD ( (@CreateDrawers) (@SetHardDiskDestinations) (set #HDLibsDestChoiceMsg #HDLibsDestChoiceMsg1) (@CheckLibsDest) (@DearchiveScreenFonts) (@CheckAmigaGuide) (@DearchiveModules) (complete 40) (@DearchiveProgFiles1) (@DearchiveFontSupport) (complete 50) (@DearchiveProgFiles2) (@DearchiveFilterLibrary) (@DearchiveGFXFilters) (complete 65) (@DearchiveExtras) (complete 70) (@DearchiveSpell) (complete 75) (@DearchiveThes) (complete 80) ) ) ;** routine to get disk specified in '#FileSourceDisk' (procedure @GetDisk ( (askdisk (prompt #InsertDiskMsg #FileSourceDisk) (help #diskhelp) (dest #FileSourceDisk) ) ) ) ;** Procedure to de-archive screen fonts (procedure @DearchiveScreenFonts ( (set #Counter 0) (while (< #Counter #NumFonts) (set #FontName (select #Counter #Font1Name #Font2Name #Font3Name ) ) (set #CheckFont (cat #SystemFontsDest ":" #FontName)) (if (exists #CheckFont) ( (protect #CheckFont "+r+w+e+d") ) ) (set #Counter (+ #Counter 1)) ) (set #FileSourceDisk #Install1Disk) (set #FileSourceName #SystemFontsSourceName) (@GetDisk) (set UnpackFile #FileSourceName) (set UnpackDest (cat #SystemFontsDest ":")) (@UnpackFiles) ) ) ;** Procedure to de-archive amigaguide library (procedure @DearchiveAmigaGuide ( (set #FileSourceName #AmigaGuideSourceName) (set #FileSourceDisk #Install1Disk) (@GetDisk) (set UnpackFile #FileSourceName) (set UnpackDest (cat #LibsDefault ":")) (@UnpackFiles) ) ) ;** Procedure to de-archive and install Modules (procedure @DearcMods ( (working #DearchiveModulesmsg) (if (= FloppyInstall 1) ( (set UnpackFile (cat "RAM:Archives/" #PassModuleOptionName)) ) ( (set #FileSourceDisk #Install1Disk) (@GetDisk) (set UnpackFile #PassModuleOptionSourceName) ) ) (set UnpackDest (cat #ModulesDest "/") ) (@UnpackFiles) ;now delete it from storage if it exists (set #ModOld (tackon #ModDisDest #PassModuleName)) (if (exists #ModOld) ( (delete #ModOld (optional "force") ) (delete (cat #ModOld ".info") (optional "force") ) ) ) (if (= FloppyInstall 1) ( (run (cat "delete RAM:Archives/" #PassModuleOptionName) (safe)) ) ) ) ) ;** Procedure to pass relevant module names to be dearchived (procedure @DearchiveModules ( (working #DearchiveModulesmsg) (set #PassModuleOptionSourceName #ModuleOption1SourceName) (set #PassModuleName #Module1Name) (set #PassModuleOptionName #ModuleOption1Name) (@DearcMods) (set #PassModuleOptionSourceName #ModuleOption2SourceName) (set #PassModuleName #Module2Name) (set #PassModuleOptionName #ModuleOption2Name) (@DearcMods) (set #PassModuleOptionSourceName #ModuleOption3SourceName) (set #PassModuleName #Module3Name) (set #PassModuleOptionName #ModuleOption3Name) (@DearcMods) ) ) ;** get lib destination (procedure @GetLibDest ( (if (= @user-level 2) ( ;** Ask for destination (set #LibsDest (askdir (prompt #HDLibsDestChoiceMsg) (help #HDLibsDestChoiceHelp) (default LibsPath) ) ) ) ( (set #LibsDest LibsPath) ) ) ;end if ) ) ;** Procedure to check Libs destination (procedure @CheckLibsDest ( (set LibsPath (expandpath (cat #LibsDefault ":"))) (@GetLibDest) (set SystemSpace TotalFontLibSpace) (while (< (getdiskspace #LibsDest) SystemSpace) ( (set #LibsDestSpace (getdiskspace #LibsDest)) (if (= @user-level 2) ( (if (< #LibsDestSpace SystemSpace) ( (message #NoLibSpaceMsg1 #LibsDest #NoLibSpaceMsg2 (/ #LibsDestSpace 1024) #NoLibSpaceMsg3a (/ SystemSpace 1024) #NoLibSpaceMsg3b ) (@GetLibDest) ) ) ) ( (abort #LibAbortMsg1 (/ #LibsDestSpace 1024) #LibAbortMsg2 (/ SystemSpace 1024) #LibAbortMsg3 ) ) ); endif ) ) ;end while ) ) ;** Procedure to de-archive and install Font Support (procedure @DearchiveFontSupport ( (working #DearchiveFontmsg) (set n 0) ;delete old small digita libraries (if (exists (cat #LibsDest "/" #IFlibraryName)) ( (delete (cat #LibsDest "/" #IFlibraryName) (optional "force") ) ) ) (set #FileSourceDisk #Install1Disk) (@GetDisk) (set UnpackFile #FontType1SourceName) (set UnpackDest (cat #LibsDest "/") ) (@UnpackFiles) (set #FileSourceName #UFSTSourceName) (set #FileSourceDisk #Install2Disk) (@GetDisk) (set UnpackFile #FileSourceName) (set UnpackDest (cat #WwUFSTDest "/")) (@UnpackFiles) (set UnpackFile #IntelliSourceName) (set UnpackDest (cat #WwAgfaDest "/")) (@UnpackFiles) (set UnpackFile #WwToolsSourceName) (set UnpackDest (cat #WwToolsDest "/")) (@UnpackFiles) (copyfiles (source (cat #Install2Disk ":Utils")) ;Copy install font scripts (dest "RAM:") ;to RAM for later on (pattern "FontScript#?") (nogauge) (optional "force") ) (copyfiles (source #WwToolsDest) ;Copy `InstallOutlines' (dest "RAM:") ;to RAM for later on (pattern "InstallOutlines") (nogauge) (optional "nofail") ) ) ) ;** Procedure to de-archive and install GFX Filters (procedure @DearchiveGFXFilters ( (if (= FloppyInstall 1) ( (set UnpackFile (cat "RAM:Archives/" #GfxFilter1Name)) ) ( (set #FileSourceDisk #Install2Disk) (@GetDisk) (set UnpackFile #GfxFilter1SourceName) ) ) (working #DearchivingGfxMsg) (set UnpackDest (cat #WwPictureFiltersDest "/") ) (@UnpackFiles) (if (= FloppyInstall 1) (run (cat "delete RAM:Archives/" #GfxFilter1Name) (safe)) ) ) ) (procedure @DearchiveTutorials ( (if (= FloppyInstall 1) ( (set #FileSourceName (cat "RAM:Archives/" #CustomExtras1Name)) ) ( (set #FileSourceName #CustomExtras1SourceName) (set #FileSourceDisk #Install2Disk) (@GetDisk) ) ) (working #DearchivingMsg) (set UnpackFile #FileSourceName) (set UnpackDest (cat #DocsDest "/" )) (@UnpackFiles) (if (= FloppyInstall 0) ( ;set default tool type to hard disk dest, for all documents (foreach #DocsDest "#?" ( (tooltype (dest (cat #DocsDest "/" @each-name)) (setdefaulttool (cat #InsideHDDest "/" #DocDefaultTool)) ) ) ); end foreach ) ( (run (cat "delete RAM:Archives/" #CustomExtras1Name) (safe)) ) ) ) ) (procedure @DearchiveTemplates ( (if (= FloppyInstall 1) ( (set #FileSourceName (cat "RAM:Archives/" #CustomExtras2Name)) ) ( (set #FileSourceName #CustomExtras2SourceName) (set #FileSourceDisk #Install2Disk) (@GetDisk) ) ) (working #DearchivingMsg) (set UnpackFile #FileSourceName) (set UnpackDest (cat #TemplatesDest "/" )) (@UnpackFiles) (if (= FloppyInstall 1) (run (cat "delete RAM:Archives/" #CustomExtras2Name) (safe)) ) ) ) (procedure @DearchiveClipArt ( (if (= FloppyInstall 1) ( (set #FileSourceName (cat "RAM:Archives/" #CustomExtras3Name)) ) ( (set #FileSourceName #CustomExtras3SourceName) (set #FileSourceDisk #Install2Disk) (@GetDisk) ) ) (set UnpackFile #FileSourceName) (set UnpackDest (cat #ClipartDest "/" )) (@UnpackFiles) (if (= FloppyInstall 1) (run (cat "delete RAM:Archives/" #CustomExtras3Name) (safe)) ) ) ) ;** Procedure to de-archive and install Extras (procedure @DearchiveExtras ( (@DearchiveTutorials) (@DearchiveTemplates) (@DearchiveClipArt) ) ) ;** Install Spell files (procedure @DearchiveSpell ( (if (= FloppyInstall 1) ( (set #FileSourceName (cat "RAM:Archives/" #DictionaryName)) ) ( (set #FileSourceName #DictionarySourceName) (set #FileSourceDisk #Install3Disk) (@GetDisk) ) ) (working #DearchivingSpellmsg) (set UnpackFile #FileSourceName) (set UnpackDest (cat #DictDest "/" )) (@UnpackFiles) (if (= FloppyInstall 1) (run (cat "delete RAM:Archives/" #DictionaryName) (safe)) ) ) ) ;** Install Thes files (procedure @DearchiveThes ( (if (= FloppyInstall 1) ( (set #FileSourceName (cat "RAM:Archives/" #ThesaurusName)) ) ( (set #FileSourceName #ThesaurusSourceName) (set #FileSourceDisk #Install3Disk) (@GetDisk) ) ) (working #DearchivingThesmsg) (set UnpackFile #FileSourceName) (set UnpackDest (cat #ThesDest "/" )) (@UnpackFiles) (if (= FloppyInstall 1) (run (cat "delete RAM:Archives/" #ThesaurusName) (safe)) ) ) ) ;** Routine to preserve text files (Librarian, UserDictionary, AutoCorrect) (procedure @PreserveTextFiles ( (@SetupDestinationsHD) (if (exists (tackon #InsideHDDest #OldAutoCorrectName)) ( (set #OldAutoCorrect (tackon #InsideHDDest #OldAutoCorrectName)) (set #TempAutoCorrect (cat #InsideHDDest "/" #TempAutoCorrectName)) (rename #OldAutoCorrect #TempAutoCorrect) ) ) (if (exists (tackon #HDDictDest #OldUserDictName)) ( (set #OldUserDict (tackon #HDDictDest #OldUserDictName)) (set #TempUserDict (tackon #HDDictDest #TempUserDictName)) (rename #OldUserDict #TempUserDict) ) ) (set #TextPreservedFlag 1) ) ) ;** Routine to retrieve old text files (procedure @RetrieveOldTextFiles ( (if (exists (tackon #InsideHDDest #TempAutoCorrectName)) ( (set #OldAutoCorrect (tackon #InsideHDDest #OldAutoCorrectName)) (set #TempAutoCorrect (cat #InsideHDDest "/" #TempAutoCorrectName)) (delete #OldAutoCorrect (optional "force") ) (rename #TempAutoCorrect #OldAutoCorrect) ) ) (if (exists (tackon #HDDictDest #TempUserDictName)) ( (set #OldUserDict (tackon #HDDictDest #OldUserDictName)) (set #TempUserDict (cat #HDDictDest "/" #TempUserDictName)) (delete #OldUserDict (optional "force") ) (rename #TempUserDict #OldUserDict) ) ) ) ) ;** This routine will delete the modules drawer (procedure @DeleteOldWordworth3 ( (working #DeleteOldmsg) (set ChosenDrawer (tackon #DestDrawer (cat #DrawerName "/" #ModulesName))) (set DeleteDrawer (cat "delete " ChosenDrawer " all force")) (Run DeleteDrawer) ) ) ;------------------------------------------------------ ;// Check to make sure that none of the Wordworth disks ;// are in the internal drive before creating blank ones. (procedure @CheckDisks ( (set #NumberDisks (+ #NumberInstallDisks #NumNewWwDisks)) (set #DiskBlank 1) (set n 0) (until (OR (= n #NumberDisks) (= #DiskBlank 0)) ( (set #CheckDiskName (select n #Install1Disk #Install2Disk #Install3Disk #NewWwDiskName #NewWwSysDiskName #NewWwOutlinesDiskName #NewWwDictDiskName ) ) (if (= (getassign "df0" "d") (cat #CheckDiskName ":")) ( ;disk is not blank (set #DiskBlank 0) ) ) (set n (+ n 1)) ) ) ) ) ;------------------------------------------------------ ;// Check to make sure that none of the German Wordworth disks ;// are in the internal drive before creating blank ones. (procedure @CheckDisks_GER ( (set #NumberDisks (+ #NumberInstallDisks #NumNewWwDisks)) (set #DiskBlank 1) (set n 0) (until (OR (= n #NumberDisks) (= #DiskBlank 0)) ( (set #CheckDiskName (select n #Install1Disk #Install2Disk #Install3Disk #NewWwDiskName #NewWwSysDiskName #NewWwOutlinesDiskName #NewWwDictDiskName #NewWwThesDiskName ) ) (if (= (getassign "df0" "d") (cat #CheckDiskName ":")) ( ;disk is not blank (set #DiskBlank 0) ) ) (set n (+ n 1)) ) ) ) ) ;------------------------------------------------------ ;// Format and name the disk given in #FormatDiskName (procedure @FormatDisk ( (working #FormatWorkingMsg) ;*** USE 2.0 FORMAT COMMAND *** (if (= #FormatChoice 0) ( (set #FormatCheck (run ("Format drive=df0: name=%s FFS NOICONS" #FormatDiskName)) ) ) ( (set #FormatCheck (run ("Format drive=df0: name=%s FFS QUICK NOICONS" #FormatDiskName)) ) ) ) (if (OR (> #FormatCheck 0) (< #FormatCheck 0)) (set #NoError 1) (set #NoError 0) ) (if (= #NoError 0) ( (if (= #FormatDiskName #NewWwDiskName) (run "Install2.1 df0:") (run "resident Install2.1 REMOVE") ) ) ); endif ) ) ;------------------------------------------------------ ;// routine to check disk in drive ok and format it if so (procedure @Makedisk ( (set #NoError 1) (while (= #NoError 1) ( ;** Make sure that the install disks are not in the drive (run "Wait 6") ;Wait a bit for disk access to stop (if (= @language "deutsch") ( (@CheckDisks_GER) ) ( (@Checkdisks) ) ) (if (= #DiskBlank 0) ( (message #NotBlankMsg1 #CheckDiskName #NotBlankMsg2) ) ( ;** Else for each disk in turn, Format it (if (= @language "deutsch") ( (set #FormatDiskName (select x #NewWwDiskName #NewWwSysDiskName #NewWwOutlinesDiskName #NewWwDictDiskName #NewWwThesDiskName ) ) ) ( (set #FormatDiskName (select x #NewWwDiskName #NewWwSysDiskName #NewWwOutlinesDiskName #NewWwDictDiskName ) ) ) ) (set #NoError 1) (@FormatDisk) (if (= #NoError 1) ( (message #FormatError (help #FormatErrorHelp)) ) );endif ) );endif ) );endwhile ) ) ;** routine to make disk 1 (Wordworth4SE) (procedure @CreateDisk1 ( ;** USE INSTALL DISK 1 and copy archives to RAM: (set #FileSourceDisk #Install1Disk) (@GetDisk) (set UnpackFileDisk (cat #Install1Disk ":Archive")) (@CopyArchives) (if (= @language "deutsch") ( (copyfiles (source (cat #Install1Disk ":" #LocaleName)) (dest (cat "RAM:" #LocaleName)) (all) (optional "force") ) ;** delete the utilities.catalog 'cos it's not needed on floppy (delete (cat "RAM:" #LocaleName "/catalogs/" Language "/sys/utilities.catalog") (optional "force") ) ) ) (copyfiles (source (cat #Install1Disk ":Libs")) (dest "RAM:Libs") (all) (optional "force") ) (copyfiles (source (cat #Install1Disk ":Devs")) ;copy devs from install disk (dest "RAM:Devs") (all) (optional "force") ) (copyfiles ;copy env-archive from install disk (source (cat #Install1Disk ":prefs/env-archive/sys")) (dest "RAM:env-archive") (all) (optional "force") ) (copyfiles ;copy startup-seq (source (cat #Install1Disk ":Archive/Boot")) (dest "RAM:S") (pattern "startup-sequence") (optional "force") ) ;** CREATE DISK (set x 0) (message #BlankDiskWarning) (@makedisk) (set #FileSourceDisk #NewWwDiskName) (@GetDisk) (working #Creatingmsg #NewWwDiskName) (makedir #CatalogsLangDest) (makedir #CatalogsDest) (makedir #LibsDest) (makedir #ModulesDest (infos)) (makedir #ModDisDest (infos)) (makedir #WwDevsDest) (makedir #WwPrefsDest) (makedir #WwEnvArcDest) (makedir #WwEnvArcSysDest) (makedir #WwSDest) ;** Now dearchive files to NewWwDisk (if (= @language "deutsch") ( (makedir #LocaleDest) (copyfiles (source (cat "RAM:" #LocaleName)) (dest (cat #NewWwDiskName ":" #LocaleName)) (all) (optional "force") (nogauge) ) (run (cat "delete RAM:" #LocaleName " all") (safe)) ) ) (copyfiles (source "RAM:Libs") ;copy libs from ram (dest (cat #NewWwDiskName ":Libs")) (all) (optional "force") ) (run "delete RAM:Libs all" (safe)) (copyfiles (source "RAM:Devs") ;copy devs from ram (dest (cat #NewWwDiskName ":Devs")) (all) (optional "force") ) (run "delete RAM:Devs all" (safe)) (copyfiles ;copy env-archive from ram (source "RAM:Env-Archive") (dest (cat #NewWwDiskName ":prefs/env-archive/sys")) (all) (optional "force") ) (run "delete RAM:Env-Archive all" (safe)) (copyfiles ;copy startup-seq from ram (source "RAM:s") (dest (cat #NewWwDiskName ":s")) (pattern "startup-sequence") (optional "force") ) (run "delete RAM:S all" (safe)) (set UnpackFile (cat "RAM:Archives/" #WordworthName)) ;unpack start stub (set UnpackDest (cat #NewWwDiskName ":")) (@UnpackFiles) (set UnpackFile (cat "RAM:Archives/" #AmigaGuideName)) ;unpack amigaguide.lib (set UnpackDest (cat #LibsDest "/")) (@UnpackFiles) (set UnpackFile (cat "RAM:Archives/" #RexxSysLibName)) ;unpack RexxSysLib.lib (set UnpackDest (cat #LibsDest "/")) (@UnpackFiles) (set UnpackFile (cat "RAM:Archives/" #ASLName)) ;unpack asl (set UnpackDest (cat #LibsDest "/")) (@UnpackFiles) (set UnpackFile (cat "RAM:Archives/" #SystemFontsName)) ;unpack sysfonts (set UnpackDest (cat #SysFontsDest "/")) (@UnpackFiles) (set UnpackFile (cat "RAM:Archives/" #CatalogsName)) ;unpack catalogs (set UnpackDest (cat #CatalogsDest "/")) (@UnpackFiles) (set UnpackFile "RAM:Archives/Boot/system.lzh") (set UnpackDest (cat #NewWwDiskName ":")) (@UnpackFiles) (set UnpackFile "RAM:Archives/Boot/c.lzh") (set UnpackDest (cat #NewWwDiskName ":")) (@UnpackFiles) (set UnpackFile "RAM:Archives/Boot/libs.lzh") (set UnpackDest (cat #NewWwDiskName ":")) (@UnpackFiles) (set UnpackFile "RAM:Archives/Boot/devs.lzh") (set UnpackDest (cat #NewWwDiskName ":")) (@UnpackFiles) (set UnpackFile "RAM:Archives/Boot/l.lzh") (set UnpackDest (cat #NewWwDiskName ":")) (@UnpackFiles) (@DearchiveModules) ; Draw Tools, Picture & TxtFX (set UnpackFile (cat "RAM:Archives/" #WwFiles1Name)) ;all WWfiles minus WWSpell.lib (set UnpackDest (cat #WwFilesDest "/")) (@UnpackFiles) (set UnpackFile (cat "RAM:Archives/" #WwFiles3Name)) ;toolbar icons (set UnpackDest (cat #WwFilesDest "/")) (@UnpackFiles) (set UnpackFile (cat "RAM:Archives/" #FontType1Name)) ;unpack Intellifont.lib (set UnpackDest (cat #LibsDest "/")) (@UnpackFiles) (tooltype (dest #WwToolDest) (settooltype #DocsTool #DocsDest) ) (tooltype (dest #WwToolDest) (settooltype #ClipartTool #ClipartDest) ) (tooltype (dest #WwToolDest) (settooltype #DeviceTool #Parallel) ) (tooltype (dest #WwToolDest) (settooltype #FiltersTool #WwFiltersDest) ) (tooltype (dest #WwToolDest) (settooltype #ModulesTool #ModulesDest) ) (tooltype (dest #WwToolDest) (settooltype #HelpTool #WwHelpDest) ) (tooltype (dest #WwToolDest) (settooltype #CatalogsTool #CatalogsLangDest) ) (tooltype (dest #WwToolDest) (settooltype #WwFilesTool #WwFilesDest) ) (tooltype (dest #WwToolDest) (settooltype #WwSpellLibTool #WwFiles2Dest) ) (set #WwSystemDest (cat #NewWwSysDiskName ":")) (tooltype (dest #WwToolDest) (settooltype #WwSystemTool #WwSystemDest) ) ;** Check ENVARC: for Wordworth/wwfonts, creating it if it does not exist (set #WwEnvDrawer (cat #NewWwDiskName ":prefs/env-archive/Wordworth")) (if (NOT (exists #WwEnvDrawer)) (makedir #WwEnvDrawer (safe)) ) ;setup Wordworth path ( ;create 'wwfonts' variable with #WwFontsDest in it (textfile (dest (cat #WwEnvDrawer "/WwFonts")) (append #WwFontsDest) (safe) ) ) ;do the same for ENV: (set #WwEnvDrawer (cat "RAM:ENV/Wordworth")) (if (NOT (exists #WwEnvDrawer)) (makedir #WwEnvDrawer (safe)) ) ( ;create 'WwFonts' variable with #WwFontsDest in it (textfile (dest (cat #WwEnvDrawer "/WwFonts")) (append #WwFontsDest) (safe) ) ) (message (cat #FormatDiskName #FormatCompleteMsg1 #FormatDiskName #FormatCompleteMsg2)) (run "delete RAM:Archives/#? all force") ) ) ;** routine to make disk 2 (Ww4SESystem) (procedure @CreateDisk2 ( ;** USE INSTALL DISK 2 (set #FileSourceDisk #Install2Disk) (@GetDisk) (copyfiles (source (cat #Install2Disk ":Archive")) (dest "RAM:Archives") (pattern ("~(Tutorials.lzh|Templates.lzh|CGM.lzh|Filters.lzh|wwhelp.lzh|UFST.lzh|Intelli.lzh|Otags.lzh)")) (optional "force") (safe) ) ;** CREATE DISK (set x 1) (message #BlankDiskWarning) (@makedisk) (set #FileSourceDisk #NewWwSysDiskName) (@GetDisk) (working #Creatingmsg #NewWwSysDiskName) (makedir #WwFiles2Dest) (makedir #ClipartDest (infos)) (makedir #WwToolsDest (infos)) ;** Now dearchive files to NewWwSysDisk (set UnpackFile (cat "RAM:Archives/" #WwProgName)) ;WWProg tool (set UnpackDest (cat #NewWWSysDiskName ":")) (@UnpackFiles) (@DearchiveClipArt) (set UnpackFile (cat "RAM:Archives/" #WwFiles2Name)) ;WWSpell.library (set UnpackDest (cat #WwFiles2Dest "/")) (@UnpackFiles) (set UnpackFile (cat "RAM:Archives/" #WwToolsName)) ;WwTools stuff (set UnpackDest (cat #WwToolsDest "/")) (@UnpackFiles) (message (cat #FormatDiskName #FormatCompleteMsg1 #FormatDiskName #FormatCompleteMsg2)) (run "delete RAM:Archives/#? all force") ) ) ;** routine to make disk 3 (Ww4SEOutlines) (procedure @CreateDisk3 ( ;** USE INSTALL DISK 2 (set #FileSourceDisk #Install2Disk) (@GetDisk) (copyfiles (source (cat #Install2Disk ":Archive")) (dest "RAM:Archives") (pattern ("(Tutorials.lzh|Templates.lzh|CGM.lzh|Filters.lzh|wwhelp.lzh|UFST.lzh|Intelli.lzh|Otags.lzh)")) (optional "force") (safe) ) ;** CREATE DISK (set x 2) (message #BlankDiskWarning) (@makedisk) (set #FileSourceDisk #NewWwOutlinesDiskName) (@GetDisk) (working #Creatingmsg #NewWwOutlinesDiskName) (makedir #WwFontsDestOutlines (infos)) (makedir #DocsDest (infos)) (makedir #TemplatesDest (infos)) (makedir #WwFontsDest) (makedir #WwAgfaDest (infos)) (makedir #WwPSDest) (makedir #WwTTDest) (makedir #WwHelpDest) (makedir #WwFiltersDest) (makedir #WwFilterLibDest) (makedir #WwPictureFiltersDest) ;** Now dearchive files to NewWwOutlinesDisk (@DearchiveTutorials) (@DearchiveTemplates) (@DearchiveGfxFilters) ; Only CGM (set UnPackFile (cat "RAM:Archives/" #FiltersName)) ;Filter.library (set UnPackDest (cat #WwFilterLibDest "/")) (@UnpackFiles) (set UnpackFile (cat "RAM:Archives/" #WwHelpName)) (set UnpackDest (cat #WwHelpDest "/")) (@UnpackFiles) (set UnpackFile (cat "RAM:Archives/" #UFSTName)) (set UnpackDest (cat #WwUFSTDest "/")) (@UnpackFiles) (set UnpackFile (cat "RAM:Archives/" #IntelliName)) (set UnpackDest (cat #WwAgfaDest "/")) (@UnpackFiles) (set UnpackFile (cat "RAM:Archives/" #FloppyOtagsName)) (set UnpackDest (cat #WwUFSTDest "/")) (@UnpackFiles) (message (cat #FormatDiskName #FormatCompleteMsg1 #FormatDiskName #FormatCompleteMsg2)) (run "delete RAM:Archives/#? all force") ) ) ;** routine to make disk 4 (Ww4SESpell) (procedure @CreateDisk4 ( ;** USE INSTALL DISK 3 (set #FileSourceDisk #Install3Disk) (@GetDisk) (if (<> @language "deutsch") ( (set UnpackFileDisk (cat #Install3Disk ":Archive")) (@CopyArchives) ) ( (copyfiles (source (cat #Install3Disk ":Archive")) (dest "RAM:Archives") (pattern ("~(Thesaurus.lzh)")) (optional "force") (safe) ) ) ) ;** CREATE DISK (set x 3) (message #BlankDiskWarning) (@makedisk) (set #FileSourceDisk #NewWwDictDiskName) (@GetDisk) (working #Creatingmsg #NewWwDictDiskName) (makedir #DictDest (infos)) ;** Now dearchive files to NewWwSpellDisk (@DearchiveSpell) (if (<> @language "deutsch") ( (@DearchiveThes) ) ) (message (cat #FormatDiskName #FormatCompleteMsg1 #FormatDiskName #FormatCompleteMsgLast)) (run "delete RAM:Archives/#? all force") ) ) ;** routine to make disk 5 (Ww4SEThes) for Germans! (procedure @CreateDisk5 ( ;** USE INSTALL DISK 3 (set #FileSourceDisk #Install3Disk) (@GetDisk) (copyfiles (source (cat #Install3Disk ":Archive")) (dest "RAM:Archives") (pattern ("(Thesaurus.lzh)")) (optional "force") (safe) ) ;** CREATE DISK (set x 4) (message #BlankDiskWarning) (@makedisk) (set #FileSourceDisk #NewWwThesDiskName) (@GetDisk) (working #Creatingmsg #NewWwThesDiskName) (makedir #ThesDest (infos)) ;** Now dearchive files to NewWwThesDisk (@DearchiveThes) (message (cat #FormatDiskName #FormatCompleteMsg1 #FormatDiskName #FormatCompleteMsgLast)) (run "delete RAM:Archives/#? all force") ) ) ;** Check that ASL library is at least version 2.1 (if not replace) (procedure @CheckASL ( (set ASLVersion (/ (getversion (cat #LibsDefault ":ASL.library")) 65536)) (if (< ASLVersion 38) ( (if (= @user-level 2) ( (set InstallASLLibrary (askbool (prompt #OldASLLibraryMsg) (choices #InstallLibChoice1 #InstallLibChoice2) (help #OldASLLibraryHelp) (default 1) ) ) (if (= InstallASLLibrary 1) ( (@InstallASL) (set ASLOK 1) ) ( (set ASLOK 0) ) ) ;end if ) ( (@InstallASL) (set ASLOK 1) ) ) ;end if ) (; else (set ASLOK 1) ) ) ;endif ) ) ;** Check that RexxSysLib library is at least v36 (if not replace) (procedure @CheckRexxSysLib ( (set RexxSysLibVersion (/ (getversion (cat #LibsDefault ":RexxSysLib.library")) 65536)) (if (< RexxSysLibVersion 36) ( (if (= @user-level 2) ( (set InstallRexxSysLibLibrary (askbool (prompt #OldRexxSysLibLibraryMsg) (choices #InstallLibChoice1 #InstallLibChoice2) (help #OldRexxSysLibLibraryHelp) (default 1) ) ) (if (= InstallRexxSysLibLibrary 1) ( (@InstallRexxSysLib) (set RexxSysLibOK 1) ) ( (set RexxSysLibOK 0) ) ) ;end if ) ( (@InstallRexxSysLib) (set RexxSysLibOK 1) ) ) ;end if ) (; else (set RexxSysLibOK 1) ) ) ;endif ) ) ;** Check that AmigaGuide library is at least version 34.11 (if not replace) (procedure @CheckAmigaGuide ( (set AmigaGuideVersion (/ (getversion (cat #LibsDefault ":amigaguide.library")) 65536)) (if (< AmigaGuideVersion 35) ( (if (= @user-level 2) ( (set InstallAmigaGuideLibrary (askbool (prompt #OldAmigaGuideLibraryMsg) (choices #InstallLibChoice1 #InstallLibChoice2) (help #OldAmigaGuideLibraryHelp) (default 1) ) ) (if (= InstallAmigaGuideLibrary 1) ( (@DearchiveAmigaGuide) ) );end if ) ( (@DearchiveAmigaGuide) ) ) ;end if ) ) ;endif ) ) ;** Procedure to install the asl library (procedure @InstallASL ( (set #FileSourceName #ASLSourceName) (set #FileSourceDisk #Install1Disk) (@GetDisk) (set UnpackFile #FileSourceName) (set UnpackDest (cat #LibsDefault ":")) (delete (tackon UnpackDest "asl.library")) (@UnpackFiles) ) ) ;** Procedure to install the RexxSysLib library (procedure @InstallRexxSysLib ( (set #FileSourceName #RexxSysLibSourceName) (set #FileSourceDisk #Install1Disk) (@GetDisk) (set UnpackFile #FileSourceName) (set UnpackDest (cat #LibsDefault ":")) (delete (tackon UnpackDest "RexxSysLib.library")) (@UnpackFiles) ) ) ;** Check that diskfont library is at least version 2.1 (if not replace) (procedure @CheckDiskFont ( (set InstalledDiskFont 0) (set DiskFontVersion (/ (getversion (cat #LibsDefault ":diskfont.library")) 65536)) (if (< DiskFontVersion 37) ( (if (= @user-level 2) ( (set InstallDiskFontLibrary (askbool (prompt #OldDiskFontLibraryMsg) (choices #InstallLibChoice1 #InstallLibChoice2) (help #OldDiskFontLibraryHelp) (default 1) ) ) (if (= InstallDiskFontLibrary 1) ( (@InstallDiskFont) (set DiskFontOK 1) ) ( (set DiskFontOK 0) ) ) ;end if ) ( (@InstallDiskFont) (set DiskFontOK 1) ) ) ;end if ) (; else (set DiskFontOK 1) ) ) ;endif ) ) ;** Procedure to install the diskfont library (procedure @InstallDiskFont ( (set #FileSourceName #DiskFontSourceName) (set #FileSourceDisk #Install1Disk) (@GetDisk) (set UnpackFile #FileSourceName) (set UnpackDest (cat #LibsDefault ":")) (delete (tackon UnpackDest "diskfont.library")) (@UnpackFiles) (set InstalledDiskFont 1) ) ) ;## Routine to install printer and fonts (procedure @AddNewPrinter ( ; Copy stuff to RAM first (askdisk (prompt #InsertDiskMsg #Install3Disk) (help #diskhelp) (dest #Install3Disk) ) (copyfiles (source (cat #Install3Disk ":Utils")) (dest "RAM:") (pattern "Writeprefs3") (nogauge) (optional "nofail") ) (copyfiles (source (cat #Install3Disk ":Utils")) (dest "RAM:") (pattern "select") (nogauge) (optional "nofail") ) (copyfiles (source (cat #Install3Disk ":Utils")) (dest "RAM:") (pattern "WwPrinterList") (nogauge) (optional "nofail") ) ;** Delete all in #RamTempFile (delete (cat #RamTempFile " all")) (set ChosenDriver "Generic") (set #DriverSource (cat #Install3Disk ":Drivers")) (if (= FloppyInstall 1) ( ;** FloppyDiskDriverDest (set #DriverDest (cat #NewWwDiskName ":Devs/Printers")) ) ( ;** HardDiskDriverDest (set #DriverDest "DEVS:Printers") (set #CheckGeneric (cat #DriverDest "/" ChosenDriver)) (if (exists #CheckGeneric) ( (protect #CheckGeneric "+r+w+e+d") ) ) ) ) (working #WorkingPrintermsg) (set SelectPrt (cat "Ram:select Ram:WwPrinterList") ) (run SelectPrt (safe)) (set ChosenDriver (getenv "wwDriver")) (set TopBord (getenv "wwTop")) (set BotBord (getenv "wwBottom")) (set LeftBord (getenv "wwLeft")) (set RightBord (getenv "wwRight")) (complete 85) (askdisk (prompt #InsertDiskMsg #Install3Disk) (help #diskhelp) (dest #Install3Disk) ) (working #WorkingPrintermsg) (copyfiles ; copy driver to ram (source #DriverSource) (dest #RamTempFile) (pattern ChosenDriver) (optional "force") (nogauge) ) ;Now decompress Driver 'ChosenDriver' to destination '#RamTempFile' (working #Unpackmsg4) (set ExpandName (tackon #RamTempFile ChosenDriver)) (set #ArchiveError 0) (set RunLHA (cat "LHA e \"" ExpandName "\" \"" #RamTempFile "/\"") ) (set #ArchiveError (run RunLHA)) (if (> #ArchiveError 0) ( (set #ArchiveAbortMsg (cat #ArchiveAbortMsg1 ExpandName #ArchiveAbortMsg2)) (abort #ArchiveAbortMsg) ) ) (delete ExpandName) (run "List " #RamTempFile " LFORMAT %s >ENV:wwDriver") (run "resident list REMOVE") ;remove resident List (if (= @pretend 1) ( (Run "setenv wwDriver Generic.lzh" (safe)) ) ) (set Driver (getenv "wwDriver")) (set DriverLen (strlen Driver)) (set DriverLen (- DriverLen 1)) (set ChosenDriver (substr Driver 0 DriverLen) ) (if (= FloppyInstall 0) ( ;** On hard disk, copy driver to devs: now!! (copyfiles (source #RamTempFile) (dest #DriverDest) (pattern ChosenDriver) (optional "force") ) ) ) (set #Drivermsg 1) ; Flag to display driver message at end of installation ) ) (procedure @InstallWwFonts ( (if (= #UserNovice 1) (user 0) ) (if (= #InstallationType "Wordworth") ( (working #InstallingFontsmsg) (execute "RAM:FontScript") (delete "RAM:FontScript") (if (exists #BulletOutlinesDest) ( ( (set #InstallBO (askbool (prompt #InstallBOPrompt) (choices #InstallBOChoice1 #InstallBOChoice2) (help #InstallBOPrompt-Help) (default 1) ) ) (if (= #InstallBO 1) ( (working #InstallingFontsmsg) (execute "RAM:FontScript2") (delete "RAM:FontScript2") ) ) ) ) ); end if (set #OldWordworthSEDrawer (cat #DestDrawer "/" #WordworthSEDrawerName)) (set #OldWordworth2Drawer (cat #DestDrawer "/" #Wordworth2DrawerName)) (if (OR (exists #OldWordworthSEDrawer) (exists #OldWordworth2Drawer)) (message #InstallOldWordworthFontsmsg) ) (delete "RAM:InstallOutlines") ) ) ) ) ;####### BEGINNING OF MAIN ROUTINE ;** Initial Checks ;** Check OS version (if (< (/ (getversion) 65536) 37) (abort #BadKick) ) (set #Drivermsg 0) (set #InstallationType (getenv "Wordworth/install")) (welcome) (working #CheckStartup) ;** Create temp file in ram: for files (if (not (exists #RamTempFile)) ( (makedir #RamTempFile (safe)) ) ) (set #EnvArcDest (getassign "ENVARC" "a")) ;** Make sure there is an Env-Archive directory and logical assign (if (= #EnvArcDest "") ( (set envdisk "SYS:Env-Archive") (if (NOT (exists envdisk)) ( (set envdisk "SYS:Prefs/Env-Archive") (if (NOT (exists envdisk)) ( (makedir envdisk) (if (> @user-level 1) ( (set envdisk (askdir (prompt #AskEnvArc) (help #AskEnvArcHelp) (default envdisk) ) ) ) ) ) ) ) ) ;** Create ENVARC assign in user-startup (startup "Env-Archive" (prompt #AskEnvArcStartup) (help #AskStartupArcHelp ) (command ("Assign >NIL: ENVARC: %s" envdisk)) ) (makeassign "ENVARC" envdisk (safe)) (set #EnvArcDest envdisk) ) ) (set #EnvDest (getassign "ENV" "a")) ;** Make sure there is an ENV directory and logical assign (if (= #EnvDest "") ( (set envdisk "RAM:ENV") (if (NOT (exists envdisk)) (makedir envdisk) ) ;** Create ENV: assign in user-startup (startup "Ram:ENV" (prompt #AskEnvStartup) (help #AskEnvStartupHelp ) (command ("Assign >NIL: ENV: %s\n" envdisk) "c:Copy >NIL: ENVARC: ENV: ALL NOREQ") ) (makeassign "ENV" envdisk (safe)) (set #EnvDest envdisk) ) ) (set #FileSourceDisk #Install1Disk) (@GetDisk) (run (cat "resident " #Install1Disk ":Utils/Format")) ;make Format resident (run (cat "resident " #Install1Disk ":Utils/Wait")) ;make Wait resident (run (cat "resident " #Install1Disk ":Utils/LHA")) ;make LHA resident (run (cat "resident " #Install1Disk ":Utils/Install2.1")) ;make Install resident (run (cat "resident " #Install1Disk ":c/list")) ;make list resident (run (cat "resident " #Install1Disk ":c/delete")) ;make delete resident (set #FullPath (expandpath "sys:")) (if (= #FullPath (cat #Install1Disk ":")) (set #DiskDefault 1) (set #DiskDefault 0) ) (if (= #InstallationType "Printer") ( (if (askchoice (prompt #DestChoicePrinterPrompt) (choices #HardDiskChoiceMsg #FloppyChoiceMsg ) (help #DestChoicePrinterHelp) (default #DiskDefault) ) (set FloppyInstall 1) (set FloppyInstall 0) ) (@AddNewPrinter) ) ( ; ### START OF MAIN INSTALLATION ;** set novice user to expert briefly (set #UserNovice 0) (if (= @user-level 0) ( (user 2) (set #UserNovice 1) ) ) (if (askchoice (prompt #DestChoicePrompt) (choices #HardDiskChoiceMsg #FloppyChoiceMsg ) (help #DestChoiceHelp) (default #DiskDefault) ) ; ### INSTALL ON FLOPPIES ( (set FloppyInstall 1) ;** set novice user back to novice (if (= #UserNovice 1) (user 0) ) (working #FloppyDiskWorkingMsg) (@SetFloppyDiskDestinations) (if (>= @user-level 2) ;expert only ( (set #FormatChoice (askchoice (prompt #FormatChoiceprompt) (choices #FormatChoicemsg1 #FormatChoicemsg2) (help #FormatChoice-help) (default 0) ) ) ) ) (if (= @user-level 0) ( (user 2) ;** Set Novice to Expert level (set #UserNovice 1) ) ) (complete 10) (message (cat #FloppyBackupsMsg) (help #FloppyWarningHelp) ) (makedir "RAM:Archives") (if (= #UserNovice 1) ( (user 0) ;** Set back to Novice level ) ) ;// if expert then check user wants to create disk 1 (if (>= @user-level 2) ( (set #CreateDiskChoice (askbool (prompt (cat #CreateDiskPrompt1 #NewWwDiskName #CreateDiskPrompt2)) (choices #ChoiceContinue #ChoiceSkip) (help #CreateDiskHelp) (default 1) ) ) ) (set #CreateDiskChoice 1) ) (if (= @user-level 0) ( (user 2) ;** Set Novice to Expert level (set #UserNovice 1) ) ) (if (= #CreateDiskChoice 1) (@CreateDisk1) ) (complete 20) (if (= #UserNovice 1) ( (user 0) ;** Set back to Novice level ) ) ;// if expert then check user wants to create disk 2 (if (>= @user-level 2) ( (set #CreateDiskChoice (askbool (prompt (cat #CreateDiskPrompt1 #NewWwSysDiskName #CreateDiskPrompt2)) (choices #ChoiceContinue #ChoiceSkip) (help #CreateDiskHelp) (default 1) ) ) ) (set #CreateDiskChoice 1) ) (if (= @user-level 0) ( (user 2) ;** Set Novice to Expert level (set #UserNovice 1) ) ) (if (= #CreateDiskChoice 1) (@CreateDisk2) ) (complete 35) (if (= #UserNovice 1) ( (user 0) ;** Set back to Novice level ) ) ;// if expert then check user wants to create disk 3 (if (>= @user-level 2) ( (set #CreateDiskChoice (askbool (prompt (cat #CreateDiskPrompt1 #NewWwOutlinesDiskName #CreateDiskPrompt2)) (choices #ChoiceContinue #ChoiceSkip) (help #CreateDiskHelp) (default 1) ) ) ) (set #CreateDiskChoice 1) ) (if (= @user-level 0) ( (user 2) ;** Set Novice to Expert level (set #UserNovice 1) ) ) (if (= #CreateDiskChoice 1) (@CreateDisk3) ) (complete 55) (if (= #UserNovice 1) ( (user 0) ;** Set back to Novice level ) ) ;// if expert then check user wants to create disk 4 (if (>= @user-level 2) ( (set #CreateDiskChoice (askbool (prompt (cat #CreateDiskPrompt1 #NewWwDictDiskName #CreateDiskPrompt2)) (choices #ChoiceContinue #ChoiceSkip) (help #CreateDiskHelp) (default 1) ) ) ) (set #CreateDiskChoice 1) ) (if (= @user-level 0) ( (user 2) ;** Set Novice to Expert level (set #UserNovice 1) ) ) (if (= #CreateDiskChoice 1) (@CreateDisk4) ) (complete 75) (if (= @language "deutsch") ( (if (= #UserNovice 1) ( (user 0) ;** Set back to Novice level ) ) ;// if German expert then check user wants to create disk 5 (if (>= @user-level 2) ( (set #CreateDiskChoice (askbool (prompt (cat #CreateDiskPrompt1 #NewWwThesDiskName #CreateDiskPrompt2)) (choices #ChoiceContinue #ChoiceSkip) (help #CreateDiskHelp) (default 1) ) ) ) (set #CreateDiskChoice 1) ) (if (= @user-level 0) ( (user 2) ;** Set Novice to Expert level (set #UserNovice 1) ) ) (if (= #CreateDiskChoice 1) (@CreateDisk5) ) ) ) ;** set novice user back to novice (if (= #UserNovice 1) (user 0) ) (set FloppyFinished 1) (set @default-dest "") (@AddNewPrinter) (complete 80) ;** On floppy, copy driver to boot disk at end (askdisk (prompt #InsertDiskMsg #NewWwDiskName) (help #diskhelp) (dest #NewWwDiskName) ) (copyfiles (source #RamTempFile) (dest #DriverDest) (pattern ChosenDriver) (optional "force") ) (complete 90) (working #Installingmsg1) ;** Lets set the WordworthPrefs file (set #PrefsDest (cat #NewWwDiskName ":WordworthPrefs")) (run (cat "RAM:writeprefs3 \"" #PrefsDest "\" \"" #DictDest "\" \"" #ThesDest "\" \"" ChosenDriver "\" \"" TopBord "\" \"" BotBord "\" \"" LeftBord "\" \"" RightBord "\" \"" #TemplatesDest "\"" )) ) ; ### INSTALL ON HARD DISK ( (if (= #FullPath (cat #Install1Disk ":")) (Abort #HDBootedFromFloppy) ) (set ASLOK 0) (set DiskFontOK 0) (set #TextPreservedFlag 0) ;** set novice user back to novice (if (= #UserNovice 1) (user 0) ) (@CheckDiskFont) (@CheckASL) (@CheckRexxSysLib) (if (AND (= ASLOK 1) (= DiskFontOK 1) (= RexxSysLibOK 1)) ( (working #HardDiskWorkingMsg) ;set amount of disk space needed in bytes (set HDSpaceNeededBytes (* (* FullHDSpace 1024) 1024)) (set TotalFontLibSpace FullHDLibsSpace) (@FindHDDest) ;ask for destination drawer (@SetHardDiskDestinations) (@DearchiveCustomModulesHD) ;install all modules (set @default-dest #DestDrawer) ) ( (if (AND (= ASLOK 0) (= DiskFontOK 0)) ( (abort #BadASLandDiskFont) ) ) (if (= ASLOK 0) ( (abort #BadASL) ) ( (abort #BadDiskFont) ) ) ) ); endif (if (= #TextPreservedFlag 1) ( (@RetrieveOldTextFiles) ) ) ;** Check env for Wordworth/wwfonts, creating it if it does not exist (set #WwEnvArcDest (cat #EnvArcDest "/" #WwDrawerName)) (if (NOT (exists (#WwEnvArcDest))) (makedir #WwEnvArcDest (safe)) ) ;setup Wordworth path ( ;create 'wwfonts' variable with #HDWwFontsDest in it (textfile (dest (cat #WwEnvArcDest "/" #WwFontsEnvName)) (append #HDWwFontsDest) (safe) ) ) ;do the same for env: (set #WwEnvDest (cat #EnvDest "/" #WwDrawerName)) (if (NOT (exists (#WwEnvDest))) (makedir #WwEnvDest (safe)) ) (;create 'WwFonts' variable with #HDWwFontsDest in it (textfile (dest (cat #WwEnvDest "/" #WwFontsEnvName)) (append #HDWwFontsDest) (safe) ) ) (tooltype (dest (cat #InsideHDDest "/Wordworth")) (settooltype "CLIPART" #ClipartDest) ) (tooltype (dest (cat #InsideHDDest "/Wordworth")) (settooltype "DOCS" #DocsDest) ) (set InstallPicasso (askbool (prompt #InstallPicassoMsg) (choices #InstallPicassoYes #InstallPicassoNo) (help #InstallPicassoHelp) (default 0) ) ) (if (= InstallPicasso 1) ( ;yes (tooltype (dest (cat #InsideHDDest "/Wordworth")) (settooltype "PICASSO" "TRUE") ) ) ( ;else (tooltype (dest (cat #InsideHDDest "/Wordworth")) (settooltype "(PICASSO" "TRUE)") ) ) );end if (copyfiles (source #HDWwToolsDest) ;Copy `InstallOutlines' (dest "RAM:") ;to RAM for later on (pattern "InstallOutlines") (nogauge) (optional "nofail") ) (@AddNewPrinter) (complete 85) (@InstallWwFonts) (complete 90) (working (cat "Installing " #ProgName " - Please wait...")) ; Lets set the WordworthPrefs file (set #PrefsDest (tackon #InsideHDDest "WordworthPrefs")) (run (cat "RAM:writeprefs3 \"" #PrefsDest "\" \"" #DictDest "\" \"" #ThesDest "\" \"" ChosenDriver "\" \"" TopBord "\" \"" BotBord "\" \"" LeftBord "\" \"" RightBord "\" \"" #TemplatesDest "\"" )) ) ) ) ) ;More Cleanup (run "delete Ram:WwTemp force all") (run "delete Ram:Select") (run "delete Ram:Writeprefs3") (run "delete Ram:WwPrinterList") (run "delete Ram:fontscript#?") (if (exists "Ram:Archives") ( (run "delete Ram:Archives force all") ) ) (complete 100) (if (= #InstallationType "Printer") ( (message #InstallationCompletemsg #DriverUsedmsg1 ChosenDriver #DriverUsedmsg2) (exit (quiet)) ) ) (if (= FloppyFinished 1) ( (if (= #Drivermsg 1) ( (exit #FloppyFinishedMsg #DriverUsedmsg1 ChosenDriver #DriverUsedmsg2) ) ( (exit #FloppyFinishedMsg) ) ) ) ( (if (= #Drivermsg 1) ( (exit #ReBoot #DriverUsedmsg1 ChosenDriver #DriverUsedmsg2) ) ( (exit #ReBoot) ) ) ) )