home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1998 #5
/
AmigaPlus_CD-ROM_Nr.5-98.iso
/
pd
/
daten
/
mt-rechnungiii
/
install_mtriii
next >
Wrap
Text File
|
1998-03-02
|
13KB
|
518 lines
; $VER: Install_MTRIII 0.96 (02.03.98)
; Script to install MT-RechnungIII
(complete 0)
(set old_level @user-level)
(set @default-dest "sys:")
;=============================================================================
; Deutsch strings
;(if (= @languge "Deutsch")
;(
(set #bad-kick "Sie benötigen AMIGA OS 2.1+ zum Installieren von MT-RechnungIII!")
(set #bad-proz "Sie benötigen mindestens einen MC68020 oder MC68EC020 Prozessor")
(set #ask-dir "Wohin soll MT-RechnungIII installiert werden?\nAchtung es wird kein Verzeichnis erstellt!")
(set #ask-psvs "Wie soll die PostScript-Druckvorschau erfolgen?\n(entsprechende ToolTypes/Merkmale werden gesetzt)")
(set #ask0-psvs "HWGPost + Multiview (hwgpost.datatype)")
(set #ask1-psvs "GhostScript Vorschaufenster")
(set #ask2-psvs "GhostScript -> pcxmono -> MultiView")
(set #ask3-psvs "GhostScript -> pcxgray -> MultiView")
(set #ask4-psvs "GhostScript -> pcx16 -> MultiView")
(set #ask5-psvs "GhostScript -> pcx256 -> MultiView")
(set #ask6-psvs "GhostScript -> pcx24b -> MultiView")
(set #ask-ps "Wie soll die PostScript-Druckausgabe erfolgen?\n(entsprechende ToolTypes/Merkmale werden gesetzt)")
(set #ask0-ps "PostScript-fähiger Drucker")
(set #ask1-ps "HWGPost und prtps:")
(set #ask2-ps "HWGPost und psprt:")
(set #ask3-ps "GhostScript mit Wokbench-Druckertreiber")
(set #ask4-ps "GhostScript-Direkt Epson")
(set #ask5-ps "GhostScript-Direkt HP")
(set #ask6-ps "GhostScript-Direkt Canon")
(set #ask0-ps-epson "Epson 9 Nadel (oder kompatibel)")
(set #ask1-ps-epson "Epson 24 Nadel (oder kompatibel)")
(set #ask2-ps-epson "Epson Stylus (Color)")
(set #ask0-ps-hp "HP DeskJet 500C/540C")
(set #ask1-ps-hp "HP DeskJet 550C/560C")
(set #ask2-ps-hp "HP PaintJet XL300/DeskJet 1200C")
(set #ask3-ps-hp "HP PaintJet")
(set #ask4-ps-hp "HP PaintJet XL")
(set #ask5-ps-hp "HP LaserJet")
(set #ask6-ps-hp "HP LaserJet Plus")
(set #ask7-ps-hp "HP LaserJet 2p")
(set #ask8-ps-hp "HP LaserJet 3")
(set #ask9-ps-hp "HP LaserJet 4")
(set #ask0-ps-canon "Canon BJ10e")
(set #ask1-ps-canon "Canon BJ200")
(set #ask2-ps-canon "Canon BJC-600/4000/70/Stylewriter2x00")
(set #ask3-ps-canon "Canon BJC-800")
(set #ask-ps-help "Bitte beachten Sie, daß weder HWGPost, noch GhostScript im Lieferumfang enthalten sind.")
(set #ask-ps-device "An welcher Schnittstelle hängt der PostScript-Drucker (par:, ser:, ...)")
(set #Install "Installiere ")
(set #ask-test-inst "Testdaten installieren?")
(set #ask-test-upd "Testdaten aktualisieren?")
(set #ask-script-upd "Scripts aktualisieren?")
(set #ask-prido-upd "Druckdokumente aktualisieren?")
(set #ask-funktion-2 "Welche Sprache(n) wollen Sie installieren?\n\n")
(set #default_lang 1)
;))
;=============================================================================
; Sicherstellen, daß mindestens OS2.1 (V38) installiert ist
(if (< (/ (getversion) 65536) 38)
(abort #bad-kick)
)
;=============================================================================
; Prüfen des Porzessors, ein 68020/68EC020 ist Mindestanforderung
(set CPUStr (database "cpu"))
(if (< CPUStr "68020")
(abort #bad-proz)
)
;=============================================================================
; Verzeichnis auswählen:
(user 2)
(set target_dir (askdir (prompt #ask-dir @askdir)
(help @askdir-help)
(default @default-dest)
(disk)
)
)
(user old_level)
(set @default-dest target_dir)
;=============================================================================
; Kopieren des Programms MT-RechnungIII
(copylib (prompt "MTRechnungIII" @copylib)
(help @copylib-help)
(source "MTRechnungIII")
(dest target_dir)
(confirm 2)
)
(complete 30)
;=============================================================================
; Kopieren der MT-Rechnung.wizard Oberflächendatei
(copylib (prompt "MT-Rechnung.wizard Oberflächendatei" @copylib)
(help @copylib-help)
(source "MT-Rechnung.wizard")
(dest target_dir)
(confirm 2)
)
(complete 45)
;=============================================================================
; Kopieren der wizard.library
(copylib (prompt "wizard.library" @copylib)
(help @copylib-help)
(source "libs/wizard.library")
(dest "Libs:")
(confirm 2)
)
(complete 60)
;=============================================================================
; Kopieren der Guide
(copylib (prompt "MT_RechnungIII.guide" @copylib)
(help @copylib-help)
(source "MT_RechnungIII.guide")
(dest target_dir)
(infos)
(confirm 2)
)
(complete 70)
; ============================================================================
; Scripts-Verzeichnis gegebenenfalls anlegen und Inhalte kopieren
(if (= (exists (TACKON target_dir ("Scripts")) (noreq)) 2)
(
(set ask-script-bool
(askbool (prompt #ask-script-upd)
(help @askbool-help)
(default 1)
)
)
)
(
(makedir ((TACKON target_dir ("Scripts")))
(infos)
)
(set ask-script-bool 1)
)
)
(if (= ask-script-bool 1)
(
(copyfiles (prompt (cat #Install "Scripts") @copyfiles)
(help @copyfiles-help)
(source ("Scripts/"))
(dest (TACKON target_dir ("Scripts")))
(all)
)
)
)
(complete 75)
; ============================================================================
; Testdaten-Verzeichnis gegebenenfalls anlegen und Inhalte kopieren
(if (= (exists (TACKON target_dir ("TestDaten")) (noreq)) 2)
(
(set ask-test-bool
(askbool (prompt #ask-test-upd)
(help @askbool-help)
(default 1)
)
)
)
(
(set ask-test-bool
(askbool (prompt #ask-test-inst)
(help @askbool-help)
(default 1)
)
)
(if (= ask-test-bool 1)
(
(makedir ((TACKON target_dir ("TestDaten")))
(infos)
)
)
)
)
)
(if (= ask-test-bool 1)
(
(copyfiles (prompt (cat #Install " TestDaten") @copyfiles)
(help @copyfiles-help)
(source ("TestDaten/"))
(dest (TACKON target_dir ("TestDaten")))
(all)
)
(if (<> (exists (TACKON target_dir ("MTRechnungIII-Testdaten.info")) (noreq)) 1)
(copyfiles (prompt "MT-RechnungIII-Testdaten-Icon" @copyfiles)
(help @copyfiles-help)
(source "MTRechnungIII-Testdaten.info")
(dest target_dir)
)
)
)
)
(complete 85)
;=============================================================================
; Icon für MT-Rechnung kopieren, wenn noch nicht vorhanden und ToolTypes
(if (<> (exists (TACKON target_dir ("MTRechnungIII.info")) (noreq)) 1)
(
(copyfiles (prompt "MT-RechnungIII-Icon" @copyfiles)
(help @copyfiles-help)
(source "MTRechnungIII.info")
(dest target_dir)
)
(user 2)
(set pstype
(askchoice (prompt #ask-psvs)
(help #ask-ps-help)
(choices #ask0-psvs
#ask1-psvs
#ask2-psvs
#ask3-psvs
#ask4-psvs
#ask5-psvs
#ask6-psvs
)
(default 0)
))
(if (= pstype 0)
(set Preview "Scripts/ZeigMultiView %s %s")
)
(if (= pstype 1)
(set Preview "Scripts/GhostPreview %s %s")
)
(if (= pstype 2)
(set Preview "Scripts/GhostPreview_PCXmono %s %s")
)
(if (= pstype 3)
(set Preview "Scripts/GhostPreview_PCXgray %s %s")
)
(if (= pstype 4)
(set Preview "Scripts/GhostPreview_PCX16 %s %s")
)
(if (= pstype 5)
(set Preview "Scripts/GhostPreview_PCX256 %s %s")
)
(if (= pstype 6)
(set Preview "Scripts/GhostPreview_PCX24b %s %s")
)
(set pstype
(askchoice (prompt #ask-ps)
(help #ask-ps-help)
(choices #ask0-ps
#ask1-ps
#ask2-ps
#ask3-ps
#ask4-ps
#ask5-ps
#ask6-ps
)
(default 0)
))
(set PSPrintDevice "")
(set PSPrintProgram "")
(if (= pstype 0)
(set PSPrintDevice
(askstring (prompt #ask-ps-device)
(help @askstring-help)
(default "par:")
)
)
)
(if (= pstype 1)
(set PSPrintDevice "prtps:")
)
(if (= pstype 2)
(set PSPrintDevice "psprt:")
)
(if (= pstype 3)
(set PSPrintProgram "Scripts/GhostPrintMTR %s")
)
(if (= pstype 4)
(
(set pstypedr
(askchoice (prompt #ask-ps)
(help #ask-ps-help)
(choices #ask0-ps-epson
#ask1-ps-epson
#ask2-ps-epson
)
(default 0)
))
(if (= pstypedr 0)
(set PSPrintProgram "Scripts/GhostPrintMTREPS9N %s")
)
(if (= pstypedr 1)
(set PSPrintProgram "Scripts/GhostPrintMTREPS24N %s")
)
(if (= pstypedr 2)
(set PSPrintProgram "Scripts/GhostPrintMTRSC %s")
)
)
)
(if (= pstype 5)
(
(set pstypedr
(askchoice (prompt #ask-ps)
(help #ask-ps-help)
(choices #ask0-ps-hp
#ask1-ps-hp
#ask2-ps-hp
#ask3-ps-hp
#ask4-ps-hp
#ask5-ps-hp
#ask6-ps-hp
#ask7-ps-hp
#ask8-ps-hp
#ask9-ps-hp
)
(default 0)
))
(if (= pstypedr 0)
(set PSPrintProgram "Scripts/GhostPrintMTRCDJ500 %s")
)
(if (= pstypedr 1)
(set PSPrintProgram "Scripts/GhostPrintMTRCDJ550 %s")
)
(if (= pstypedr 2)
(set PSPrintProgram "Scripts/GhostPrintMTRPJXL300 %s")
)
(if (= pstypedr 3)
(set PSPrintProgram "Scripts/GhostPrintMTRPJTEST %s")
)
(if (= pstypedr 4)
(set PSPrintProgram "Scripts/GhostPrintMTRPJXLTEST %s")
)
(if (= pstypedr 5)
(set PSPrintProgram "Scripts/GhostPrintMTRLASERJET %s")
)
(if (= pstypedr 6)
(set PSPrintProgram "Scripts/GhostPrintMTRLJETPLUS %s")
)
(if (= pstypedr 7)
(set PSPrintProgram "Scripts/GhostPrintMTRLJET2P %s")
)
(if (= pstypedr 8)
(set PSPrintProgram "Scripts/GhostPrintMTRLJET3 %s")
)
(if (= pstypedr 9)
(set PSPrintProgram "Scripts/GhostPrintMTRLJET4 %s")
)
)
)
(if (= pstype 6)
(
(set pstypedr
(askchoice (prompt #ask-ps)
(help #ask-ps-help)
(choices #ask0-ps-canon
#ask1-ps-canon
#ask2-ps-canon
#ask3-ps-canon
)
(default 0)
))
(if (= pstypedr 0)
(set PSPrintProgram "Scripts/GhostPrintMTRBJ10E %s")
)
(if (= pstypedr 1)
(set PSPrintProgram "Scripts/GhostPrintMTRBJ200 %s")
)
(if (= pstypedr 2)
(set PSPrintProgram "Scripts/GhostPrintMTRBJC600 %s")
)
(if (= pstypedr 3)
(set PSPrintProgram "Scripts/GhostPrintMTRBJC800 %s")
)
)
)
(tooltype (dest (TACKON target_dir ("MTRechnungIII")))
(settooltype "Preview" Preview)
(settooltype "PSPrintProgram" PSPrintProgram)
(settooltype "PSPrintDevice" PSPrintDevice)
(setstack 60000)
)
(if (= (exists (TACKON target_dir ("MTRechnungIII-Testdaten.info")) (noreq)) 1)
(tooltype (dest (TACKON target_dir ("MTRechnungIII-Testdaten")))
(settooltype "Preview" Preview)
(settooltype "PSPrintProgram" PSPrintProgram)
(settooltype "PSPrintDevice" PSPrintDevice)
(setstack 60000)
)
)
(user old_level)
)
)
(complete 90)
; ============================================================================
; Druckdokumente-Verzeichnis gegebenenfalls anlegen und Inhalte kopieren
(if (<> (exists (TACKON target_dir ("PrintDoks")) (noreq)) 2)
(
(set ask-prido-bool 1)
(makedir ((TACKON target_dir ("PrintDoks")))
(infos)
)
)
(
(set ask-prido-bool
(askbool (prompt #ask-prido-upd)
(help @askbool-help)
(default 1)
)
)
)
)
(if (= ask-prido-bool 1)
(
(copyfiles (prompt (cat #Install " PrintDoks") @copyfiles)
(help @copyfiles-help)
(source ("PrintDoks/"))
(dest (TACKON target_dir ("PrintDoks")))
(all)
)
)
)
(complete 95)
;(if (exists "LOCALE:")
;(
; (user 2)
; (set lang
; (askoptions (prompt #ask-funktion-2)
; (help @askoptions-help)
; (choices
; "dansk"
; "deutsch"
; "english"
; "español"
; "français"
; "italiano"
; "nederlands"
; "norsk"
; "portoguês"
; "svenska"
; )
; (default #default_lang)
; )
; )
; (user old_level)
;
; (set m 0)
; (while (set language
; (select m
; "dansk"
; "deutsch"
; "english"
; "español"
; "français"
; "italiano"
; "nederlands"
; "norsk"
; "portoguês"
; "svenska"
; ""
; ))
; (
; (set LocSource (cat "Locale/Catalogs/" language))
; (if (exists LocSource)
; (
; (if (IN lang m)
; (
; (makedir (cat "LOCALE:Catalogs/" language))
; (copyfiles (prompt "Locale-Files" @copyfiles)
; (help @copyfiles-help)
; (source LocSource)
; (dest (cat "Locale:Catalogs/" language)
; (all)
; )
; ))
; ))
; (set m (+ m 1))
; ))
;))
(complete 100)