home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-02-02 | 28.6 KB | 1,155 lines |
- ; $VER: CDBoot Install/Remove 1.04 (01.02.95)
- ; Copyright © 1994-95 Thomas Kessler
- ; All rights reserved
-
- (set @default-dest "SYS:CDBoot")
- (set old_level @user-level)
-
- ;english
- (set #yes "Yes")
- (set #no "No")
- (set #bad-kick "\n\nAmigaDOS 2.0 or higher is required for CDBoot.")
- (set #ask-user
- (cat "All rights reserved.\n\n"
- "This script installs or removes CDBoot on harddisk "
- "or copies your CD-filesystem to the floppy disk.\n"))
- (set #choice0-user "Install CDBoot on harddisk")
- (set #choice1-user "Remove CDBoot from harddisk")
- (set #choice2-user "Copy CD-filesystem to floppy disk")
- (set #bad-space
- (cat "\n\nApproximately 130K of disk space is needed on your SYS: volume."
- "\n\nYou only have " (/ (getdiskspace "SYS:") 1024) "K free.\n\n"
- "Delete or transfer some files from the SYS: volume and try again."))
- (set #already-installed
- (cat "\n\nCDBoot is already installed.\n\n"
- "Remove it before installing it again.\n"))
- (set #insert-disk "\nPlease insert the disk labeled \"CDBoot_Install\".")
- (set #no-help "\n Please read the manual.")
- (set #install-prg "\nInstalling program files.")
- (set #install-libs "\nInstalling libraries.")
- (set #enter-dev "\nEnter your CD-device name.\nWill be CD0: in most cases.")
- (set #enter-mode
- (cat "\nSelect mode for booting.\n\n"
- "(You can override the \"always\" modes by\n"
- "pressing the left mousebutton during boot)"))
- (set #choice-mode0 "Boot always from CD (if CD present)")
- (set #choice-mode1 "Boot always from HardDisk")
- (set #choice-mode2 "Ask with Menu (if CD present)")
- (set #enter-volume "\nSelect mode for the sound-effect,\nwhich is played by CDBoot.\n\n")
- (set #choice-volume64 "Full effect")
- (set #choice-volume32 "Low effect")
- (set #choice-volume0 "No effect")
- (set #enter-info
- (cat "\n\nDo you want to see a short\n"
- "information-requester, when\n"
- "autobooting from CD?\n"))
- (set #magic "\n\nDo you want to install MagicWB-icons instead of normal icons?\n")
- (set #install-icon "\nInstalling normal icons.")
- (set #install-micon "\nInstalling MagicWB icons.")
- (set #startup-info
- (cat "Note:\n\n"
- "The file \"SYS:S/Startup-Sequence.CDBoot.old\" was created during "
- "installation.\n\nDo NOT delete this file, you will need it for "
- "removing CDBoot again!"))
- (set #not-installed
- (cat "\n\nCDBoot is not installed.\n\n"
- "Install it before removing it again.\n"))
- (set #ask-really
- (cat "\nDo you really want to remove CDBoot "
- "from your system?\n\n"
- "Your \"Startup-Sequence\" will be replaced with "
- "the file \"SYS:S/Startup-Sequence.CDBoot.old\" which "
- "was saved at installation time.\n\nIf you did changes "
- "to your \"Startup-Sequence\" in the meantime, they "
- "will be lost!"))
- (set #remove-prg "\nRemoving files.")
- (set #ask-dellibs
- (cat "\nDo you want to delete the installed CD³² libraries?\n"
- " (Click \"Yes\" in most cases)"))
- (set #ask-nonvol "\nDo you want to delete saved games and highscores?")
- (set #get-filesys "Select your CD-filesystem.\n")
- (set #get-filesys-other "other CD-filesystem")
- (set #get-device "Select your CD-device. (CD0 in most cases)")
- (set #custom-cdfs "Select your CD-filesystem file (if there is one).\n")
- (set #installed-cdfs
- (cat "Your CD-filesystem has been installed.\n\n"
- "You may boot from the disk now ..."))
-
- ;deutsch
- (if (= @language "deutsch")
- (
- (set #yes "Ja")
- (set #no "Nein")
- (set #bad-kick "\n\nSie benötigen AmigaDOS 2.0 oder höher für CDBoot.")
- (set #ask-user
- (cat "Alle Rechte vorbehalten.\n\n"
- "Dieses Skript installiert oder entfernt CDBoot auf der Festplatte "
- "oder kopiert Ihr CD-Filesystem auf die Diskette.\n"))
- (set #choice0-user "CDBoot auf die Festplatte installieren")
- (set #choice1-user "CDBoot von der Festplatte entfernen")
- (set #choice2-user "CD-Filesystem auf die Diskette kopieren")
- (set #bad-space
- (cat "\n\nEs werden ca. 130K Speicher auf der SYS: Partition benötigt."
- "\n\nSie haben nur " (/ (getdiskspace "SYS:") 1024) "K frei.\n\n"
- "Entfernen Sie einige Dateien von der SYS: Partition und versuchen Sie "
- "es dann nochmal."))
- (set #already-installed
- (cat "\n\nCDBoot ist schon installiert.\n\n"
- "Entfernen Sie es bevor Sie es wieder neu installieren.\n"))
- (set #insert-disk "\nBitte die Diskette \"CDBoot_Install\" einlegen.")
- (set #no-help "\n Bitte lesen Sie das Handbuch.")
- (set #install-prg "\nInstalliere Programm Dateien.")
- (set #install-libs "\nInstalliere Libraries.")
- (set #enter-dev "\nGeben Sie Ihren CD-Device Namen ein.\nIn den meisten Fällen CD0:")
- (set #enter-mode
- (cat "\nWählen Sie den Boot-Modus.\n\n"
- "(Beim \"Immer\" Modus kann man durch das Drücken der\n"
- "linken Maustaste beim Booten das Menü erreichen.)"))
- (set #choice-mode0 "Immer von CD booten (wenn CD vorhanden)")
- (set #choice-mode1 "Immer von HardDisk booten")
- (set #choice-mode2 "Per Menü nachfragen (wenn CD vorhanden)")
- (set #enter-volume "\nWählen Sie den Sound-Effekt,\nder von CDBoot gespielt wird.\n\n")
- (set #choice-volume64 "Voller Effekt")
- (set #choice-volume32 "Leiser Effekt")
- (set #choice-volume0 "Kein Effekt")
- (set #enter-info
- (cat "\n\nWollen Sie einen kleinen\n"
- "Informations-Requester sehen, wenn\n"
- "direkt von der CD gebootet wird?\n"))
- (set #magic "\n\nWollen Sie Icons für MagicWB anstelle normaler Icons installieren?\n")
- (set #install-icon "\nInstalliere normale Icons.")
- (set #install-micon "\nInstalliere MagicWB Icons.")
- (set #startup-info
- (cat "Beachten Sie:\n\n"
- "Die Datei \"SYS:S/Startup-Sequence.CDBoot.old\" wurde während "
- "der Installation angelegt.\n\nLöschen Sie diese Datei NICHT, "
- "da sie für das Entfernen von CDBoot wieder benötigt wird!"))
- (set #not-installed
- (cat "\n\nCDBoot ist nicht installiert.\n\n"
- "Installieren Sie es bevor Sie es "
- "wieder löschen.\n"))
- (set #ask-really
- (cat "\nWollen Sie wirklich CDBoot von Ihrem System löschen?\n\n"
- "Ihre \"Startup-Sequence\" wird durch die Datei "
- "\"SYS:S/Startup-Sequence.CDBoot.old\" ersetzt werden, die "
- "zum Zeitpunkt der Installation gespeichert wurde.\n\n"
- "Wenn Sie in der Zwischenzeit Änderungen an Ihrer "
- "\"Startup-Sequence\" vorgenommen haben, sind diese verloren!"))
- (set #remove-prg "\nEntferene Dateien.")
- (set #ask-dellibs
- (cat "\nWollen Sie die installierten CD³² Libraries löschen?\n"
- " (In den meisten Fällen: \"Ja\")"))
- (set #ask-nonvol "\nWollen Sie die gespeicherten Spielstände und Highscores löschen?")
- (set #get-filesys "Wählen Sie Ihr CD-Filesystem.\n")
- (set #get-filesys-other "anderes CD-Filesystem")
- (set #get-device "Wählen Sie Ihr CD-Device. (meistens CD0)")
- (set #custom-cdfs "Datei des Filesystems anwählen (wenn vorhanden)")
- (set #installed-cdfs
- (cat "Ihr CD-Filesystem wurde installiert.\n\n"
- "Sie können jetzt von der Diskette booten ..."))
- ))
-
- (complete 0)
-
- (if (< (/ (getversion) 65536) 37)
- (abort #bad-kick))
-
- (set CPU (database "cpu"))
-
- (askdisk
- (prompt #insert-disk)
- (help #no-help)
- (dest "CDBoot_Install")
- )
-
- (run (prompt "Version") (help #na) "CDBoot_Install:C/Version /CDBoot/CDBoot >ENV:CDBoot.Version")
- (set #CDBoot-version (getenv "CDBoot.Version"))
- (delete (prompt "Cleanup") (help #na) "ENV:CDBoot.Version" (optional force))
-
- (complete 1)
-
- (user 2)
-
- (set action
- (askchoice
- (prompt (cat "\n" #CDBoot-version #ask-user))
- (help #no-help)
- (choices #choice0-user #choice1-user #choice2-user)
- (if (exists "SYS:S/Startup-Sequence.CDBoot.old")
- (default 1)
- (default 0)
- )
- )
- )
-
- ;install
- (if (= action 0)
- (
- (if (exists "SYS:S/Startup-Sequence.CDBoot.old")
- (abort #already-installed))
-
- (if (< (getdiskspace "SYS:") 131000)
- (abort #bad-space))
-
- (complete 5)
- (user old_level)
-
- (protect "SYS:CDBoot/CDBoot" "+wd")
- (protect "SYS:CDBoot/CDBoot_Cleanup" "+wd")
- (protect "SYS:CDBoot/CDBoot_BabelPatch" "+wd")
- (protect "SYS:CDBoot/JoyPad.NormalConfig" "+wd")
- (protect "SYS:CDBoot/JoyPad.GlobalE" "+wd")
- (protect "SYS:CDBoot/JoyPad.Gunship_2000" "+wd")
- (protect "SYS:CDBoot/JoyPad.CDTV_TEST" "+wd")
- (protect "SYS:CDBoot/RawKey.IFF" "+wd")
- (protect "SYS:CDBoot/ConfigHelp.IFF" "+wd")
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "CDBoot_Install:CDBoot")
- (choices "CDBoot" "CDBoot_BabelPatch" "CDBoot_Cleanup" "RawKey.IFF" "ConfigHelp.IFF")
- (dest "SYS:CDBoot")
- (confirm)
- )
- (complete 15)
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "CDBoot_Install:CDBoot")
- (choices "JoyPad.NormalConfig" "JoyPad.GlobalE" "JoyPad.Gunship_2000" "JoyPad.CDTV_TEST")
- (dest "SYS:CDBoot")
- (confirm)
- )
- (complete 20)
-
- (protect "SYS:CDBoot/CDBoot.ReadMe" "+wd")
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "CDBoot_Install:CDBoot.ReadMe")
- (dest "SYS:CDBoot")
- )
- (complete 30)
-
- (working "")
-
- (protect "SYS:Libs/lowlevel.library" "+wd")
- (protect "SYS:Libs/nonvolatile.library" "+wd")
- (protect "SYS:Libs/realtime.library" "+wd")
- (protect "SYS:Libs/freeanim.library" "+wd")
-
- (copylib
- (prompt #install-libs)
- (help #no-help)
- (source "CDBoot_Install:Libs/lowlevel.library")
- (dest "SYS:Libs")
- )
- (complete 32)
- (copylib
- (prompt #install-libs)
- (help #no-help)
- (source "CDBoot_Install:Libs/nonvolatile.library")
- (dest "SYS:Libs")
- )
- (complete 34)
- (copylib
- (prompt #install-libs)
- (help #no-help)
- (source "CDBoot_Install:Libs/realtime.library")
- (dest "SYS:Libs")
- )
- (complete 36)
- (copylib
- (prompt #install-libs)
- (help #no-help)
- (source "CDBoot_Install:Libs/freeanim.library")
- (dest "SYS:Libs")
- )
- (complete 38)
-
- (working "")
-
- (if (> CPU 68020)
- (if (NOT (exists "SYS:C/CPU"))
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "CDBoot_Install:C/CPU")
- (dest "SYS:C")
- )
- )
- )
- (complete 39)
-
- (if (NOT (exists "SYS:C/Assign"))
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "CDBoot_Install:C/Assign")
- (dest "SYS:C")
- )
- )
- (complete 40)
- (if (NOT (exists "SYS:C/BindDrivers"))
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "CDBoot_Install:C/BindDrivers")
- (dest "SYS:C")
- )
- )
- (complete 41)
- (if (NOT (exists "SYS:C/Break"))
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "CDBoot_Install:C/Break")
- (dest "SYS:C")
- )
- )
- (complete 42)
- (if (NOT (exists "SYS:C/Delete"))
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "CDBoot_Install:C/Delete")
- (dest "SYS:C")
- )
- )
- (complete 43)
- (if (NOT (exists "SYS:C/Execute"))
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "CDBoot_Install:C/IconX")
- (dest "SYS:C")
- )
- )
- (complete 44)
- (if (NOT (exists "SYS:C/IconX"))
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "CDBoot_Install:C/IconX")
- (dest "SYS:C")
- )
- )
- (complete 45)
- (if (NOT (exists "SYS:C/MakeDir"))
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "CDBoot_Install:C/MakeDir")
- (dest "SYS:C")
- )
- )
- (complete 46)
- (if (NOT (exists "SYS:C/SetPatch"))
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "CDBoot_Install:C/SetPatch")
- (dest "SYS:C")
- )
- )
- (complete 47)
- (if (NOT (exists "SYS:C/Status"))
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "CDBoot_Install:C/Status")
- (dest "SYS:C")
- )
- )
- (complete 48)
- (if (NOT (exists "SYS:C/Wait"))
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "CDBoot_Install:C/Wait")
- (dest "SYS:C")
- )
- )
- (complete 49)
-
- (protect "SYS:C/Mount" "+wd")
- (copylib
- (prompt #install-prg)
- (help #no-help)
- (source "CDBoot_Install:C/Mount")
- (dest "SYS:C")
- )
- (complete 50)
-
- (if (NOT (exists "SYS:System/NoFastMem"))
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "CDBoot_Install:System/NoFastMem")
- (dest "SYS:System")
- )
- )
- (complete 60)
-
- (user 2)
-
- (set device
- (askstring
- (prompt #enter-dev)
- (help #no-help)
- (default "CD0:")
- )
- )
- (complete 62)
-
- (set mode
- (askchoice
- (prompt #enter-mode)
- (help #no-help)
- (choices #choice-mode0 #choice-mode1 #choice-mode2)
- (default 2)
- )
- )
- (complete 64)
-
- (set info 1)
- (if (= 0 mode)
- (set info
- (askbool
- (prompt #enter-info)
- (help #no-help)
- (choices #yes #no)
- (default 1)
- )
- )
- )
- (complete 65)
-
- (if (= 1 info)
- (set volume
- (askchoice
- (prompt #enter-volume)
- (help #no-help)
- (choices #choice-volume64 #choice-volume32 #choice-volume0)
- )
- )
- )
- (complete 66)
-
- (user old_level)
-
- (working "")
-
- (set dev-name (substr device 0 (- (strlen device) 1)))
-
- (if (exists (tackon "SYS:WBStartup" dev-name))
- (
- (protect "DEVS:MountList.CDBoot" "+wd")
- (textfile
- (prompt "\nCreating Mountlist-Entry")
- (help #no-help)
- (dest "DEVS:MountList.CDBoot")
- (append device" \n")
- (include (tackon "SYS:WBStartup" dev-name))
- )
- (rename
- (cat (tackon "SYS:WBStartup" dev-name) ".info")
- (cat (tackon "SYS:WBStartup" dev-name) ".noinfo")
- )
- )
- )
-
- (makedir "SYS:S")
- (protect "SYS:S/CD-Startup" "+wd")
- (textfile
- (prompt #install-prg)
- (help #no-help)
- (dest "SYS:S/CD-Startup")
- (append "; $VER: "#CDBoot-version"\n"
- "Failat 2147483647\n"
- "Resident >NIL: C:Assign PURE\n"
- "Assign >NIL: ENV: RAM:\n"
- "Assign >NIL: T: RAM:\n"
- "C:BindDrivers >NIL:\n"
- (if (exists "DEVS:MountList.CDBoot")
- ("Run >NIL: SYS:CDBoot/CDBoot_BabelPatch\n"))
- "C:Mount >NIL: "device
- (if (exists "DEVS:MountList.CDBoot")
- (" FROM DEVS:Mountlist.CDBoot"))
- "\nC:Wait >NIL: 1 SEC\n"
- (if (exists "DEVS:MountList.CDBoot")
- ("C:Break >NIL: `C:Status COM=SYS:CDBoot/CDBoot_BabelPatch`\n"))
- "SYS:CDBoot/CDBoot >NIL: DEVICE="device" PATH=SYS:CDBoot "
- (if (= 0 mode)
- ("MODE=ALWAYS_CD "))
- (if (= 1 mode)
- ("MODE=NEVER_CD "))
- (if (= 0 info)
- ("NO_INFO "))
- (if (= 1 volume)
- ("LOW_SOUND "))
- (if (= 2 volume)
- ("NO_SOUND "))
- "\nIF WARN\n"
- (if (> CPU 68020)
- (" GetEnv >NIL: CacheOn\n IF WARN\n C:CPU >NIL: NOCACHE NOBURST NOCOPYBACK NOEXTERNALCACHE\n ENDIF\n UnsetEnv >NIL: CacheOn\n"))
- " Assign >NIL: WB_SYS: SYS:\n"
- " Assign >NIL: SYS: "device" WB_SYS:\n"
- " Assign >NIL: CD0: SYS:\n"
- " Assign >NIL: C: SYS:C\n"
- " Assign >NIL: S: SYS:S\n"
- " Assign >NIL: LIBS: SYS:Libs WB_SYS:Libs\n"
- " Assign >NIL: DEVS: SYS:Devs\n"
- " Assign >NIL: FONTS: SYS:Fonts\n"
- " Assign >NIL: L: SYS:L\n"
- " GetEnv >NIL: FastMem\n"
- " IF WARN\n"
- " Run >NIL: WB_SYS:System/NoFastMem\n"
- " ENDIF\n"
- " CD SYS:\n"
- " WB_SYS:C/Execute >NIL: S:Startup-Sequence\n"
- " Assign >NIL: CD0: REMOVE\n"
- " Assign >NIL: SYS: WB_SYS:\n"
- " Assign >NIL: C: SYS:C\n"
- " Assign >NIL: S: SYS:S\n"
- " Assign >NIL: LIBS: SYS:Libs\n"
- " Assign >NIL: DEVS: SYS:Devs\n"
- " Assign >NIL: FONTS: SYS:Fonts\n"
- " Assign >NIL: L: SYS:L\n"
- " Assign >NIL: ENV: RAM:\n"
- " GetEnv >NIL: FastMem\n"
- " IF WARN\n"
- " C:Break >NIL: `C:Status COM=WB_SYS:System/NoFastMem`\n"
- " ENDIF\n"
- " UnsetEnv >NIL: FastMem\n"
- " Assign >NIL: WB_SYS: REMOVE\n"
- " CD SYS:\n"
- " SYS:CDBoot/CDBoot_CleanUp >NIL:\n"
- "ENDIF\n"
- "Resident >NIL: C:Assign REMOVE\n")
- )
- (complete 70)
-
- (protect "SYS:CDBoot/CDBoot_WB" "+wd")
- (textfile
- (prompt #install-prg)
- (help #no-help)
- (dest "SYS:CDBoot/CDBoot_WB")
- (append "; $VER: "#CDBoot-version"\n"
- "Failat 2147483647\n"
- "Resident >NIL: C:Assign PURE\n"
- "C:BindDrivers >NIL:\n"
- (if (exists "DEVS:MountList.CDBoot")
- ("Run >NIL: SYS:CDBoot/CDBoot_BabelPatch\n"))
- "C:Mount >NIL: "device
- (if (exists "DEVS:MountList.CDBoot")
- (" FROM DEVS:Mountlist.CDBoot"))
- "\nC:Wait >NIL: 1 SEC\n"
- (if (exists "DEVS:MountList.CDBoot")
- ("C:Break >NIL: `C:Status COM=SYS:CDBoot/CDBoot_BabelPatch`\n"))
- "SYS:CDBoot/CDBoot >NIL: DEVICE="device" PATH=SYS:CDBoot MODE=ALWAYS_CD NO_INFO WORKBENCH\n"
- "IF WARN\n"
- (if (> CPU 68020)
- (" GetEnv >NIL: CacheOn\n IF WARN\n C:CPU >NIL: NOCACHE NOBURST NOCOPYBACK NOEXTERNALCACHE\n ENDIF\n UnsetEnv >NIL: CacheOn\n"))
- " Assign >NIL: WB_SYS: SYS:\n"
- " Assign >NIL: SYS: "device" WB_SYS:\n"
- " Assign >NIL: CD0: SYS:\n"
- " Assign >NIL: C: SYS:C\n"
- " Assign >NIL: S: SYS:S\n"
- " Assign >NIL: LIBS: SYS:Libs WB_SYS:Libs\n"
- " Assign >NIL: DEVS: SYS:Devs\n"
- " Assign >NIL: FONTS: SYS:Fonts\n"
- " Assign >NIL: L: SYS:L\n"
- " GetEnv >NIL: FastMem\n"
- " IF WARN\n"
- " Run >NIL: WB_SYS:System/NoFastMem\n"
- " ENDIF\n"
- " CD SYS:\n"
- " WB_SYS:C/Execute >NIL: S:Startup-Sequence\n"
- " Assign >NIL: CD0: REMOVE\n"
- " Assign >NIL: SYS: WB_SYS:\n"
- " Assign >NIL: C: SYS:C\n"
- " Assign >NIL: S: SYS:S\n"
- " Assign >NIL: LIBS: SYS:Libs\n"
- " Assign >NIL: DEVS: SYS:Devs\n"
- " Assign >NIL: FONTS: SYS:Fonts\n"
- " Assign >NIL: L: SYS:L\n"
- " Assign >NIL: ENV: RAM:\n"
- " GetEnv >NIL: FastMem\n"
- " IF WARN\n"
- " C:Break >NIL: `C:Status COM=WB_SYS:System/NoFastMem`\n"
- " ENDIF\n"
- " UnsetEnv >NIL: FastMem\n"
- " Assign >NIL: WB_SYS: REMOVE\n"
- " CD SYS:\n"
- " SYS:CDBoot/CDBoot_CleanUp >NIL:\n"
- "ENDIF\n"
- "Resident >NIL: C:Assign REMOVE\n")
- )
- (complete 72)
-
- (if (NOT (exists "SYS:S/Startup-Sequence"))
- (textfile
- (prompt #install-prg)
- (help #no-help)
- (dest "SYS:S/Startup-Sequence")
- (append "; $VER: Empty-Startup 1.0 (1.8.94)\n"
- "; © 1994-95 Thomas Kessler\n\n"
- "; there was no previous SYS:S/Startup-Sequence\n")
- )
- )
-
- (protect "T:Startup-Sequence" "+wd")
- (textfile
- (prompt #install-prg)
- (help #no-help)
- (dest "T:Startup-Sequence")
- (append "; $VER: "#CDBoot-version"\n"
- ";BEGIN CDBoot\n"
- "C:SetPatch QUIET\n"
- "IF EXISTS S:CD-Startup\n"
- " C:Execute S:CD-Startup\n"
- " C:Delete >NIL: T:#? ENV:#? FORCE\n"
- "ENDIF\n"
- ";END CDBoot\n\n")
- (include "SYS:S/Startup-Sequence")
- )
- (complete 75)
-
- (protect "SYS:S/Startup-Sequence.CDBoot.old" "+wd")
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "SYS:S/Startup-Sequence")
- (dest "SYS:S")
- (newname "Startup-Sequence.CDBoot.old")
- )
- (protect "SYS:S/Startup-Sequence.CDBoot.old" "-wd")
- (complete 80)
-
- (protect "SYS:S/Startup-Sequence" "+wd")
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "T:Startup-Sequence")
- (dest "SYS:S")
- )
- (delete
- (prompt #install-prg)
- (help #no-help)
- "T:Startup-Sequence"
- (optional force)
- )
- (complete 85)
-
- (makedir "SYS:Prefs")
- (makedir "SYS:Prefs/Env-Archive")
- (makedir "SYS:Prefs/Env-Archive/sys")
- (protect "SYS:Prefs/Env-Archive/sys/NV_Location" "+wd")
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "CDBoot_Install:Prefs/Env-Archive/sys/NV_Location")
- (dest "SYS:Prefs/Env-Archive/sys")
- )
- (makedir "SYS:NonVolatile")
- (complete 90)
-
- (set magic
- (exists "ENV:MagicWB")
- )
-
- (user 2)
- (if (= 0 magic)
- (set magic
- (askbool
- (prompt #magic)
- (help #no-help)
- (choices #yes #no)
- (default 1)
- )
- )
- )
- (user old_level)
- (complete 92)
-
- (protect "SYS:CDBoot/CDBoot_WB.info" "+wd")
- (protect "SYS:CDBoot/CDBoot.ReadMe.info" "+wd")
- (protect "SYS:CDBoot/JoyPad.NormalConfig.info" "+wd")
- (protect "SYS:CDBoot/RawKey.IFF.info" "+wd")
- (protect "SYS:CDBoot/ConfigHelp.IFF.info" "+wd")
- (protect "SYS:CDBoot.info" "+wd")
- (complete 95)
-
- (if (= 0 magic)
- (set icon-source-dir "CDBoot_Install:Icons")
- (set icon-source-dir "CDBoot_Install:Icons/MagicWB")
- )
-
- (copyfiles
- (prompt #install-icon)
- (help #no-help)
- (source icon-source-dir)
- (choices "CDBoot_WB.info" "CDBoot.ReadMe.info" "JoyPad.NormalConfig.info" "RawKey.IFF.info" "ConfigHelp.IFF.info")
- (dest "SYS:CDBoot")
- (confirm)
- )
- (copyfiles
- (prompt #install-icon)
- (help #no-help)
- (source (tackon icon-source-dir "CDBoot_Drawer.info"))
- (dest "SYS:")
- (newname "CDBoot.info")
- (confirm)
- )
- (if (NOT (exists "SYS:System/NoFastMem.info"))
- (copyfiles
- (prompt #install-icon)
- (help #no-help)
- (source icon-source-dir)
- (choices "NoFastMem.info")
- (dest "SYS:System")
- (confirm)
- )
- )
- (complete 97)
-
- (if (< (/ (getversion) 65536) 39)
- (set default-tool "SYS:Utilities/Display")
- (set default-tool "SYS:Utilities/MultiView")
- )
-
- (tooltype
- (dest "SYS:CDBoot/RawKey.IFF")
- (setdefaulttool default-tool)
- )
- (tooltype
- (dest "SYS:CDBoot/ConfigHelp.IFF")
- (setdefaulttool default-tool)
- )
-
-
- (complete 100)
- (exit #startup-info)
- ))
-
- ;remove
- (if (= action 1)
- (
- (if (NOT (exists "SYS:S/Startup-Sequence.CDBoot.old"))
- (abort #not-installed))
-
- (set really
- (askbool
- (prompt #ask-really)
- (help #no-help)
- (choices #yes #no)
- (default 1)
- )
- )
- (user old_level)
- (complete 5)
-
- (if (= 0 really) (exit (quiet)))
-
- (delete
- (prompt #remove-prg)
- (help #no-help)
- "SYS:S/Startup-Sequence"
- (optional force)
- (confirm)
- )
- (complete 10)
-
- (rename
- (prompt #remove-prg)
- (help #no-help)
- "SYS:S/Startup-Sequence.CDBoot.old" "SYS:S/Startup-Sequence"
- )
- (complete 20)
-
- (delete
- (prompt #remove-prg)
- (help #no-help)
- "SYS:S/CD-Startup"
- (optional force)
- )
- (complete 30)
-
- (run
- (prompt #remove-prg)
- (help #no-help)
- "CDBoot_Install:C/Delete >NIL: SYS:CDBoot#? ALL FORCE"
- )
- (complete 45)
-
- (if (exists "DEVS:Mountlist.CDBoot")
- (
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "DEVS:Mountlist.CDBoot")
- (dest "ENV:")
- )
- (set old-dev (getenv "Mountlist.CDBoot"))
- (set old-dev (substr old-dev 0 10))
- (set old-dev (pathonly old-dev))
- (set old-dev (substr old-dev 0 (- (strlen old-dev) 1)))
- (rename
- (cat (tackon "SYS:WBStartup" old-dev) ".noinfo")
- (cat (tackon "SYS:WBStartup" old-dev) ".info")
- )
- (delete
- (prompt #remove-prg)
- (help #no-help)
- "DEVS:Mountlist.CDBoot"
- (optional force)
- )
- (delete
- (prompt #remove-prg)
- (help #no-help)
- "ENV:Mountlist.CDBoot"
- (optional force)
- )
- )
- )
- (complete 50)
-
- (user 2)
- (if (set dellibs
- (askbool
- (prompt #ask-dellibs)
- (help #no-help)
- (choices #yes #no)
- (default 1)
- )
- )
- (
- (delete
- (prompt #remove-prg)
- (help #no-help)
- "SYS:Libs/lowlevel.library"
- (optional force)
- )
- (complete 52)
- (delete
- (prompt #remove-prg)
- (help #no-help)
- "SYS:Libs/nonvolatile.library"
- (optional force)
- )
- (complete 54)
- (delete
- (prompt #remove-prg)
- (help #no-help)
- "SYS:Libs/realtime.library"
- (optional force)
- )
- (complete 56)
- (delete
- (prompt #remove-prg)
- (help #no-help)
- "SYS:Libs/freeanim.library"
- (optional force)
- )
- (complete 60)
- )
- )
- (user old_level)
-
- (user 2)
- (if (set nonvol
- (askbool
- (prompt #ask-nonvol)
- (help #no-help)
- (choices #yes #no)
- (default 1)
- )
- )
- (
- (run
- (prompt #remove-prg)
- (help #no-help)
- "CDBoot_Install:C/Delete >NIL: SYS:NonVolatile ALL FORCE"
- )
- (delete
- (prompt #remove-prg)
- (help #no-help)
- "SYS:Prefs/Env-Archive/sys/NV_Location"
- (optional force)
- )
- )
- )
- (user old_level)
-
- (complete 100)
- (exit (quiet))
- ))
-
- ;copy
- (if (= action 2)
- (
- (set @default-dest "CDBoot_Install:")
-
- (askdisk
- (prompt #insert-disk)
- (help #no-help)
- (dest "CDBoot_Install")
- )
-
- (set filesys
- (askchoice
- (prompt #get-filesys)
- (help #no-help)
- (choices
- "Workbench 3.1 © Commodore-Amiga" ; 0
- "AmiCDROM © Frank Munkert" ; 1
- "Blizzard 1230 SCSI © Phase 5 Digital Products" ; 2
- "CacheCDFS © Elaborate Bytes" ; 3
- "AsimCDFS © Asimware Innovations" ; 4
- "Overdrive CD © Archos" ; 5
- "CDx © Xetec" ; 6
- "TandemCacheCDFS © bsc büroautomation AG" ; 7
- "BabelCDROMFS 1.2 © Ralph Babel" ; 8
- #get-filesys-other ; 9
- )
- (if (exists "L:CDFileSystem") (default 0))
- (if (exists "L:cdrom-handler") (default 1))
- (if (exists "L:CDrive") (default 2))
- (if (exists "L:CacheCDFS") (default 3))
- (if (exists "L:AsimCDFS") (default 4))
- (if (exists "L:overcd-handler") (default 5))
- (if (exists "L:CDxFileSystem") (default 6))
- (if (exists "L:TandemCacheCDFS") (default 7))
- (if (exists "L:BABELCDROMFS") (default 8) (default 9))
- )
- )
- (complete 10)
-
- (set default-cd0 "DEVS:DOSDrivers/CD0")
-
- (if (= filesys 8)
- (set default-cd0 "SYS:WBStartup/CD0")
- )
-
- (set device
- (askfile
- (prompt #get-device)
- (help #no-help)
- (default default-cd0)
- )
- )
- (complete 20)
-
- (set device-name (cat (fileonly device) ":"))
-
- (askdisk
- (prompt #insert-disk)
- (help #no-help)
- (dest "CDBoot_Install")
- )
- (complete 30)
-
- (protect (tackon "CDBoot_Install:Devs/DOSDrivers" (fileonly device)) "+wd")
- (protect (tackon "CDBoot_Install:Devs/DOSDrivers" (cat (fileonly device) ".info")) "+wd")
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source device)
- (dest "CDBoot_Install:Devs/DOSDrivers")
- (infos)
- )
- (complete 40)
-
- (if (= filesys 0) (set src-handler "L:CDFileSystem"))
- (if (= filesys 1) (set src-handler "L:cdrom-handler"))
- (if (= filesys 2) (set src-handler "L:CDrive"))
- (if (= filesys 3) (set src-handler "L:CacheCDFS"))
- (if (= filesys 4)
- (
- (set src-handler "L:AsimCDFS")
- (protect "CDBoot_Install:Devs/asimcdfs.device" "+wd")
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "DEVS:asimcdfs.device")
- (dest "CDBoot_Install:Devs")
- )
- )
- )
- (if (= filesys 5) (set src-handler "L:overcd-handler"))
- (if (= filesys 6)
- (
- (set src-handler "L:CDxFileSystem")
- (protect "CDBoot_Install:Devs/cdx.device" "+wd")
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "DEVS:cdx.device")
- (dest "CDBoot_Install:Devs")
- )
- )
- )
- (if (= filesys 7)
- (
- (set src-handler "L:TandemCacheCDFS")
- (if (exists "DEVS:tandemcd.device")
- (
- (protect "CDBoot_Install:Devs/tandemcd.device" "+wd")
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "DEVS:tandemcd.device")
- (dest "CDBoot_Install:Devs")
- )
- )
- )
- (if (exists "DEVS:tandemcd_pcmcia.device")
- (
- (protect "CDBoot_Install:Devs/tandemcd_pcmcia.device" "+wd")
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "DEVS:tandemcd_pcmcia.device")
- (dest "CDBoot_Install:Devs")
- )
- )
- )
- (if (exists "DEVS:tandemcd_come.device")
- (
- (protect "CDBoot_Install:Devs/tandemcd_come.device" "+wd")
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source "DEVS:tandemcd_come.device")
- (dest "CDBoot_Install:Devs")
- )
- )
- )
- )
- )
- (if (= filesys 8) (set src-handler "L:BABELCDROMFS"))
- (if (= filesys 9)
- (
- (user 2)
- (set custom
- (askfile
- (prompt #custom-cdfs)
- (help #no-help)
- (default "L:<none>")
- )
- )
- (user old_level)
- (if (NOT (= (fileonly custom) "<none>"))
- (
- (protect (tackon "CDBoot_Install:L" (fileonly custom)) "+wd")
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source custom)
- (dest "CDBoot_Install:L")
- )
- )
- )
- (user 2)
- (set custom
- (askfile
- (prompt #custom-cdfs)
- (help #no-help)
- (default "DEVS:<none>")
- )
- )
- (user old_level)
- (if (NOT (= (fileonly custom) "<none>"))
- (
- (protect (tackon "CDBoot_Install:Devs" (fileonly custom)) "+wd")
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source custom)
- (dest "CDBoot_Install:Devs")
- )
- )
- )
- (user 2)
- (set custom
- (askfile
- (prompt #custom-cdfs)
- (help #no-help)
- (default "SYS:Expansion/<none>")
- )
- )
- (user old_level)
- (if (NOT (= (fileonly custom) "<none>"))
- (
- (protect (tackon "CDBoot_Install:Expansion" (fileonly custom)) "+wd")
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source custom)
- (dest "CDBoot_Install:Expansion")
- )
- )
- )
- )
- ; if filesys=9 ... else
- (
- (protect (tackon "CDBoot_Install:L" (fileonly src-handler)) "+wd")
- (copyfiles
- (prompt #install-prg)
- (help #no-help)
- (source src-handler)
- (dest "CDBoot_Install:L")
- )
- )
- )
- (complete 80)
-
- (textfile
- (prompt #install-prg)
- (help #no-help)
- (dest "CDBoot_Install:S/CD-Startup")
- (append "; $VER: "#CDBoot-version"\n"
- "C:SetPatch QUIET\n"
- "Failat 2147483647\n"
- "Resident >NIL: C:Assign PURE\n"
- "Assign >NIL: ENV: RAM:\n"
- "Assign >NIL: T: RAM:\n"
- "C:BindDrivers >NIL:\n"
- (if (= filesys 8)
- ("Run >NIL: SYS:CDBoot/CDBoot_BabelPatch\n"))
- "C:Mount >NIL: "device-name"\n"
- "C:Wait >NIL: 2 SEC\n"
- (if (= filesys 8)
- ("C:Break >NIL: `C:Status COM=SYS:CDBoot/CDBoot_BabelPatch`\n"))
- "SYS:CDBoot/CDBoot >NIL: DEVICE="device-name" PATH=SYS:CDBoot MODE=ALWAYS_CD\n"
- "IF WARN\n"
- (if (> CPU 68020)
- (" GetEnv >NIL: CacheOn\n IF WARN\n C:CPU >NIL: NOCACHE NOBURST NOCOPYBACK NOEXTERNALCACHE\n ENDIF\n UnsetEnv >NIL: CacheOn\n"))
- " Assign >NIL: WB_SYS: SYS:\n"
- " Assign >NIL: SYS: "device-name" WB_SYS:\n"
- " Assign >NIL: CD0: SYS:\n"
- " Assign >NIL: C: SYS:C\n"
- " Assign >NIL: S: SYS:S\n"
- " Assign >NIL: LIBS: SYS:Libs WB_SYS:Libs\n"
- " Assign >NIL: DEVS: SYS:Devs\n"
- " Assign >NIL: FONTS: SYS:Fonts\n"
- " Assign >NIL: L: SYS:L\n"
- " Resident >NIL: C:Assign REMOVE\n"
- " GetEnv >NIL: FastMem\n"
- " IF WARN\n"
- " Run >NIL: WB_SYS:System/NoFastMem\n"
- " ENDIF\n"
- " UnSetEnv >NIL: FastMem\n"
- " CD SYS:\n"
- " WB_SYS:C/Execute >NIL: S:Startup-Sequence\n"
- " WB_SYS:C/Reset\n"
- "ENDIF\n"
- "Resident >NIL: C:Assign REMOVE\n")
- )
- (complete 100)
-
- (exit #installed-cdfs)
- ))
- (welcome "")
-