ich stehe mal wieder vor einem kleinen Problem oder aufem Schlauch

und zwar hab ich es endlich geschafft mir eine install.ins & uninstall.ins für JAVA 7u55 zu schreiben,
leider bin ich jetzt bei einem Client auf das Phänomen gestoßen das wenn ich mein Paket verteile,
das gewisse Seiten wie z.b.: vom Zoll nicht richtig geladen wird und ich das Formular nicht sehe.
Dieses Formular wird, wie sollte es anders sein mit Java geladen, was ich installiert habe, wird mir aber trotzdem nicht aufgerufen

nach ewig langem Gesuche habe ich herausgefunden das es an der Version liegt.
Ich hatte JAVA 7u55 64bit installiert und damit kam weder der Internet Explorer 11 noch der Firefox 24.4.0 klar :/
so weit so gut, ich die 64bit Installation wieder runter geschmissen und das Paket auf 32bit umgebaut
und dann verteilt. Siehe da es geht!
Jetzt zu meiner Frage wie kann ich das Java scribt so umbauen das ich gleichzeitig 32 & 64 bit auf einen Client verteilen kann
und dann wär mir am liebsten wenn man aus dem install.ins scribt alte Versionen deinstallieren kann.
Bis jetzt muss ich immer erst die uninstall aufem opsi-config-editor ausführen um alte Versionen zu deinstallieren
und dann install um die neue Version zu verteilen.
Anbei mein Setup.ins:
Code: Alles auswählen
[Initial]
;Standard Text, der während der Installation angezeigt wird
Message = Bitte warten, das Produkt wird installiert
;Loglevel einstellen
setLogLevel = 6
;Bei Fehlern abbrechen
ExitOnError = false
;Syntax Fehler werden in einem separaten Fenster angezeigt
ScriptErrorMessages = on
;Single-Step Mode nicht verwenden
TraceMode = off
;Im Batchmode das Winst-Fenster nicht im Vordergrund anzeigen
StayOnTop = false
[Actions]
;Variable für die Ermittlung des Betriebssystems
DefVar $OS$
set $OS$ = GetOS
;Variable für die Ermittlung der Betriebssystem Unterversion
DefVar $NTVersion$
set $NTVersion$ = GetNTVersion
;Variable zur Ermittlung der Systemarchitektur
DefVar $SystemType$
Set $SystemType$ = GetSystemType
;Name des Produkts (max. 12 Zeichen)
DefVar $ProductName$
Set $ProductName$ = "Java"
;Vollständiger Produktname incl. Versionsnummer
DefVar $ProductNameFull1$
set $ProductNameFull1$ = "Java 1.7 Update 55"
;Dateiname des Produktbildes mit Erweiterung
DefVar $ProductPicture$
Set $ProductPicture$ = "java.png"
DefVar $Executable32$
DefVar $Executable64$
Set $Executable32$ = "jre-7u55-windows-i586.exe"
Set $Executable64$ = "jre1.7.0_55.msi"
;Die Variable zur Auswertung des ExitCodes
DefVar $ExitCode$
;Prüfen der Winst Version
requiredWinstVersion >= "4.11"
;$ProductPicture$ und $ProductName$ anzeigen
ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$
;Anzeigen der Installationsbenachrichtigung incl. des vollen Produktnamens
Message "Installiere "+$ProductNameFull1$
;Freien Speicherplatz ermitteln
if not (HasMinimumSpace ("%SYSTEMDRIVE%", "100 MB"))
LogError "Nicht genügend Platz auf %SYSTEMDRIVE%"
isFatalError
endif
;OS-Version ermitteln
if ( $NTVersion$ = "Win2K" OR $NTVersion$ = "WinXP" OR $NTVersion$ = "Win NT 5.2" OR $NTVersion$ = "Windows Vista" )
if $SystemType$ = "x86 System"
Winbatch_Install_32-Bit
endif
if $SystemType$ = "64 Bit System"
Winbatch_Install_64-Bit
endif
else
LogError "Kein kompatibles Betriebssystem installiert"
isFatalError
endif
[Winbatch_Install_32-Bit]
"%ScriptPath%\$Executable32$" /qn
[Winbatch_Install_64-Bit]
msiexec /i "%SCRIPTPATH%\$Executable64$" /qn reboot=reallysuppress
Code: Alles auswählen
[Initial]
Message = Bitte warten, Java wird Deinstalliert
setLogLevel = 6
ExitOnError = false
ScriptErrorMessages = on
TraceMode = off
StayOnTop = false
[Actions]
;Variable for the OS
DefVar $OS$
Set $OS$ = GetOS
;Variable for the OS-subversion
DefVar $NTVersion$
Set $NTVersion$ = GetNTVersion
;Name of product (max. 12 columns)
DefVar $ProductName$
Set $ProductName$ = "Java"
;filename of productpicture with extension
DefVar $ProductPicture$
Set $ProductPicture$ = "java.png"
;show $ProductPicture$ and $ProductName$
ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$
;Variable for the msiexec-call for deinstallation
DefVar $UninstallCommand$
;Variable for the current version. Will be read from registry.
DefVar $DisplayName$
killtask "java.exe"
killtask "javaw.exe"
killtask "jqs.exe"
if FileExists("%ProgramFiles32Dir%\Java\jre6\")
comment "Start uninstalling old version"
Winbatch_Uninstall_Java_32
Registry_KeysLoeschen_Java_32
endif
if FileExists("%ProgramFiles32Dir%\Java\jre7\")
comment "Start uninstalling old version"
Winbatch_Uninstall_Java_32
Registry_KeysLoeschen_Java_32
endif
if FileExists("%ProgramFiles64Dir%\Java\jre6\")
comment "Start uninstalling old version"
Winbatch_Uninstall_Java_64
Registry_KeysLoeschen_Java_64
endif
if FileExists("%ProgramFiles64Dir%\Java\jre7\")
comment "Start uninstalling old version"
Winbatch_Uninstall_Java_64
Registry_KeysLoeschen_Java_64
endif
[Winbatch_Uninstall_Java_32]
;REM JRE Runtime Environment 1.5 Update 14
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0150140} /qb-! REBOOT=Suppress
;REM JRE Runtime Environment 1.6 Update 12
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83216012FF} /qb-! REBOOT=Suppress
;REM JRE Runtime Environment 1.7 Update 45
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83217045FF} /qb-! REBOOT=Suppress
;REM JRE Runtime Environment 1.7.0 Update 51
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83217051FF} /qb-! REBOOT=Suppress
;REM JRE Runtime Environment 1.7.0 Update 55
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83217055FF} /qb-! REBOOT=Suppress
[Winbatch_Uninstall_Java_64]
;REM JRE Runtime Environment 1.7 Update 45
msiexec /x {26A24AE4-039D-4CA4-87B4-2F86417045FF} /qb-! REBOOT=Suppress
;REM JRE Runtime Environment 1.7.0 Update 51
msiexec /x {26A24AE4-039D-4CA4-87B4-2F86417051FF} /qb-! REBOOT=Suppress
;REM JRE Runtime Environment 1.7.0 Update 55
msiexec /x {26A24AE4-039D-4CA4-87B4-2F86417055FF} /qb-! REBOOT=Suppress