home *** CD-ROM | disk | FTP | other *** search
- ; **** Installscript written by Markus Mönig ****
-
- ; **** Based on a Script written by Markus Illenser ****
-
- ; **** Special version for MainActor Broadcast ****
- ; **** by MainConcept, GbR Moenig/Zabel, © 1994, 1995 ****
-
- ; **** This script requires the Installer from Commodore ****
- ; **** which is available for free. ****
-
- ; **** Version 1.0 of this script ****
-
- (set ProductName "MainActor Broadcast") ; product Name
- (set VersionNum "1.0") ; product version number
-
- (set MABName "MABroadcast")
- (set DefaultMAB @default-dest)
-
- (set OSVersion (/ (getversion) 65536))
- (set WBVersion (/ (getversion "version.library" (resident)) 65536))
- (set Options 2) ; 1=english, 2=german, 3=e+g
-
- (set DirPath "")
-
- (transcript "Installing %s Commodity..." ProductName)
-
- ; Here follow localized strings for the german and english texts
- ; used in the script. Adding a new language should be easy by copying
- ; the block and translating it.
-
- (if (= 1 1)
- (
- (set no_good_os
- ("%s%s%s%s%s%s"
- "Sieht so aus, als hätten Sie immer noch WB/KS 1.3! "
- "Bitte denken Sie doch mal an ein Update ihres "
- "Betriebssystems. WB 3.1 ist für (fast) alle Amiga "
- ("erhältlich.\n\n \"")
- ProductName
- ("\" braucht mindestens WB 2.1\n")
- )
- )
- (set sel_place_MAB
- ("%s%s%s%s%s"
- ("Bitte wählen Sie den Pfad wo \"")
- ProductName
- ("\" installiert werden soll. Der Ordner \"")
- MABName
- ("\" wird dort erstellt.")
- )
- )
- (set sel_MAB_help
- ("%s%s%s%s%s%s%s%s"
- "Es wird ein Verzeichnis gesucht, in dem ca. 2 MB Platz sind, "
- "um dort \""
- ProductName
- "\" zu installieren. Dort wird dann der Ordner \""
- MABName
- "\" erstellt. Existiert der angegebene Ordner nicht, so wird er erstellt. "
- "\n\n"
- )
- )
- (set ask_addmap1
- ("%s"
- ("Soll ich \"Assign MABROADCAST: \"")
- )
- )
- (set ask_addmap2
- ("%s"
- ("\"\" an \"S:user-startup\" anhängen? (Hilfe für mehr)" )
- )
- )
- (set ask_addmap3
- ("%s"
- ("Soll ich \"Assign JPEGTMP: \"")
- )
- )
- (set ask_addmap4
- ("%s"
- ("\"\" an \"S:user-startup\" anhängen? (Hilfe für mehr)" )
- )
- )
- (set ask_addmap_help1
- ("%s%s"
- ("Wählen Sie den 'Proceed' Knopf um die Zeile\n")
- ("\"Assign >NIL: MABROADCAST: \"")
- )
- )
- (set ask_addmap_help2
- ("%s%s%s%s"
- ("\"\" anzuhängen. Dies wird \"")
- ProductName
- ("\" automatisch beim Booten starten. ")
- ("Bitte tun Sie das!\n\n\n")
- )
- )
- (set ask_addmap_help3
- ("%s%s"
- ("Wählen Sie den 'Proceed' Knopf um die Zeile\n")
- ("\"Assign >NIL: JPEGTMP: \"")
- )
- )
- (set ask_addmap_help4
- ("%s%s"
- ("\"\" anzuhängen. Dies wird den JPEG Codec automatisch beim Booten starten. ")
- ("Bitte tun Sie das!\n\n\n")
- )
- )
- (set install_there1
- ("%s%s%s"
- "\n"
- ProductName
- "\nwird im Ordner\n"
- )
- )
- (set install_there2
- ("%s"
- "\ninstalliert. \n\nIst das richtig?"
- )
- )
- (set AYes "Ja")
- (set ANo "Nein")
- )
- )
-
- ; **** Beginning of the real installer...
-
- (transcript "Installing %s Commodity..." ProductName)
-
- ; **** Check OSVersion
-
- (if (< OSVersion 36)
- (
- (message no_good_os)
- (exit "No luck...")
- )
- )
-
- (complete 10)
-
- ; **** Ask for Place
-
- (set extracthere 0)
-
- (while (= extracthere 0)
- (
- (set InstallDir
- (askdir
- (prompt sel_place_MAB)
- (help sel_MAB_help @askdir-help)
- (default DefaultMAB)
- (newpath)
- )
- )
-
- (set extracthere
- (askbool
- (prompt install_there1 InstallDir install_there2)
- (choices AYes ANo)
- (help @askbool-help)
- (default 0)
- )
- )
- )
- )
-
- (complete 15)
-
- (working "Installiere Libraries")
-
- ; *** Kopiere multipic.library ***
-
- (copylib
- (help @copylib-help)
- (prompt "Kopiere multipic.library...")
- (source "libs/multipic.library")
- (dest "libs:")
- (optional "nofail")
- )
-
- (complete 20)
-
- ; *** Kopiere JPEG Classes ***
-
- (copylib
- (help @copylib-help)
- (prompt "Kopiere tower.library...")
- (source "Libs/tower.library")
- (dest "libs:")
- (confirm)
- (optional "nofail")
- )
-
- (complete 22)
-
- (copylib
- (help @copylib-help)
- (prompt "Kopiere codec.class...")
- (source "Libs/codec.class")
- (dest "libs:")
- (confirm)
- (optional "nofail")
- )
-
- (complete 24)
-
- (copylib
- (help @copylib-help)
- (prompt "Kopiere picture.codec...")
- (source "Libs/Codecs/picture.codec")
- (dest (tackon "libs:" "Codecs"))
- (confirm)
- (optional "nofail")
- )
-
- (complete 26)
-
- (copylib
- (help @copylib-help)
- (prompt "Kopiere jpeg.codec...")
- (source "libs/Codecs/jpeg.codec")
- (dest (tackon "libs:" "Codecs"))
- (confirm)
- (optional "nofail")
- )
-
- (set has-temp 0)
-
- (if (exists "JPEGTMP:" (noreq))
- (
- (set has-temp 1)
- (if (= "RAM" (getdevice "JPEGTMP:"))
- (set has-temp 0)
- )
- )
- )
-
- (complete 30)
-
- ; **** Unpack Archive ***
-
- (working "Extrahiere Archive")
- (run ("lz x MABroadcast.lha \"%s\"" InstallDir))
-
- (complete 60)
-
- (run ("lz x Display.lha \"%s\"" "T:"))
-
- (complete 80)
-
- ; **** Ask for GFX Cards ***
-
- (set displaydir (tackon (tackon InstallDir MABName) "Display"))
-
- (set bits (askoptions
- (prompt "Welche Treiber sollen kopiert werden ?\n(Der Amiga Treiber wird automatisch kopiert)")
- (choices "Merlin" "Picasso" "Retina" "CyberGfx")
- (help "Die angewählten Grafikkarten Treiber werden installiert.")
- )
- )
-
- (copylib
- (prompt "Kopiere Amiga Treiber")
- (source "T:Amiga")
- (dest displaydir)
- )
-
- (if (BITAND bits 1) (copylib
- (prompt "Kopiere Merlin Treiber")
- (source "T:Merlin")
- (dest displaydir)
- )
- )
-
- (if (BITAND bits 2) (copylib
- (prompt "Kopiere Picasso Treiber")
- (source "T:Picasso")
- (dest displaydir)
- )
- )
-
- (if (BITAND bits 4) (copylib
- (prompt "Kopiere Retina Treiber")
- (source "T:Retina")
- (dest displaydir)
- )
- )
-
- (if (BITAND bits 8) (copylib
- (prompt "Kopiere CyberGfx Treiber")
- (source "T:CyberGfx")
- (dest displaydir)
- )
- )
-
- (complete 90)
-
- ; **** Copy Demo Animation ***
-
- (set animdir (tackon (tackon InstallDir MABName) "Anims"))
-
- (copyfiles
- (prompt "Kopiere Demo ...")
- (source "Install-Demo:")
- (dest animdir)
- (all)
- )
-
- ; **** Check installation
-
- (complete 95)
-
- (set @default-dest InstallDir)
-
- (
- (startup
- (prompt ask_addmap1 (tackon InstallDir MABName) ask_addmap2)
- (ProductName)
- (help ask_addmap_help1 (tackon InstallDir MABName) ask_addmap_help2 @startup-help)
- (command ("Assign >NIL: MABROADCAST: \"%s\"" (tackon InstallDir MABName)))
- )
- (makeassign "MABROADCAST")
- (makeassign "MABROADCAST" (tackon InstallDir MABName))
- )
-
- (if (= has-temp 0)
- (
- (startup "JPEG Codec"
- (help ask_addmap_help3 (tackon InstallDir MABName) ask_addmap_help4 @startup-help)
- (prompt ask_addmap3 (tackon InstallDir MABName) ask_addmap4)
- (command "Assign JPEGTMP: \"" (tackon InstallDir MABName) "\"")
- )
- (makeassign "JPEGTMP")
- (makeassign "JPEGTMP" (tackon InstallDir MABName))
- )
- )
-
- (exit)
-