Probleme mit Java De- und Installation x86 u x64

Antworten
seemax1991
Beiträge: 38
Registriert: 14 Jan 2013, 14:51

Probleme mit Java De- und Installation x86 u x64

Beitrag von seemax1991 »

Uninstall script

Code: Alles auswählen

; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.

[Initial]
LogLevel = 9
ExitOnError = false
ScriptErrorMessages = on
TraceMode = off
StayOnTop = false

[Aktionen]
DefVar $TEMP$
DefVar $OS$

DefVar $ProductId$
DefVar $InstallDir$
DefVar $UninstallCommand$
DefVar $MsiCode$
DefVar $DisplayName$
DefVar $RemoveOOo2$
DefVar $RebootFlag$

Set $TEMP$ = EnvVar("TEMP")
Set $OS$ = GetOS
Set $ProductId$ = "java"
Set $InstallDir$ = "%ProgramFilesDir%\Java\jre6"

if not ( $OS$ = "Windows_NT" or $OS$ = "Windows_95" )
        LogError "Refusing uninstall on os " + $OS$
        isFatalError
endif

ShowBitmap /3 "%scriptpath%\java.png"

Message "Deinstalliere Java"

Set $MsiCode$ = "{26a24ae4-039d-4ca4-87b4-2f86416037ff}"
Set $DisplayName$ = GetRegistryStringValue ("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"+$MsiCode$+"] DisplayName")
if not ($DisplayName$ = "")
        Message "Gefunden "+$DisplayName$+" => es wird deinstalliert..."
        Set $UninstallCommand$ = "MsiExec.exe /x "+$MsiCode$+" /qb-! REBOOT=ReallySuppress"
        Winbatch_uninstall
endif

[WinBatch_uninstall]
$UninstallCommand$

Install script

Code: Alles auswählen

[Actions]
requiredWinstVersion >= "4.10.8.6"
 
DefVar $LogDir$
DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $UninstallProgram$
DefVar $ExitCode$
DefVar $LicenseRequired$
DefVar $LicenseKey$
DefVar $LicensePool$
DefVar $INST_SystemType$
DefVar $INST_architecture$
DefVar $Version$
DefVar $Executable32$
DefVar $Executable64$
DefVar $MsiId$

Set $INST_SystemType$ = GetSystemType
set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
 
 
Set $LogDir$ = "%SystemDrive%\tmp"
 
; ----------------------------------------------------------------
; - Please edit the following values                             -
; ----------------------------------------------------------------
Set $MinimumSpace$       = "50 MB"
; the path were we find the product after the installation
Set $LicenseRequired$    = "false"
Set $LicensePool$        = "p_" + $ProductId$
Set $Executable32$       = "jre-6u37-windows-i586.exe"
Set $Executable64$       = "jre-6u37-windows-x64.exe"
; ----------------------------------------------------------------
 
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
	LogError "Nicht ausreichend Platz auf %SystemDrive%, " + $MinimumSpace$ + " auf Laufwerk %SystemDrive% für " + $ProductId$ " benötigt "	
	isFatalError
	; Stop process and set installation status to failed
else
	comment "Show product picture"
	ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
 
	if FileExists("%ScriptPath%\delsub.ins")
		comment "Start uninstall sub section"
		Sub "%ScriptPath%\delsub.ins"
	endif
 
	comment "Installiere " + $ProductId$ + " (32/64 Bit)"
 
    if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
        Message "64Bit System identifiziert Java 32Bit wird installiert"
        comment "Start setup program"
        Winbatch_Install_32-Bit
        Sub_check_exitcode
    endif
 
    if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
        Message "64Bit System identifiziert Java 64Bit wird installiert"
        comment "Start setup program"
        Winbatch_Install_64-Bit
        Sub_check_exitcode
    endif

endif

	; comment "Es wird getestet ob die Software korrekt installiert wurde"
	; Test if software marked as installed in registry
	; if (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}] DisplayName") = "")
	; 	logError "Fatal: After Installation 32 bit [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}] not found"
	; 	isFatalError
	; else
	; 	comment "Successful Installation"
	; endif
 
endif
 
[Winbatch_Install_32-Bit]
"%ScriptPath%\jre-6u37-windows-i586.exe" /s MOZILLA=1
 
[Winbatch_Install_64-Bit]
"%ScriptPath%\jre-6u37-windows-x64.exe" /s MOZILLA=1
 
 
[Sub_check_exitcode]
comment "Test for installation success via exit code"
set $ExitCode$ = getLastExitCode
; informations to exit codes see
; http://msdn.microsoft.com/en-us/library/aa372835(VS.85).aspx
; http://msdn.microsoft.com/en-us/library/aa368542.aspx
if ($ExitCode$ = "0")
	comment "Looks good: setup program gives exitcode zero"
else
	comment "Setup program gives a exitcode unequal zero: " + $ExitCode$
	if ($ExitCode$ = "1605")
		comment "ERROR_UNKNOWN_PRODUCT	1605	This action is only valid for products that are currently installed."
		comment "Uninstall of a not installed product failed - no problem"
	else
		if ($ExitCode$ = "1641")
			comment "looks good: setup program gives exitcode 1641"
			comment "ERROR_SUCCESS_REBOOT_INITIATED	1641	The installer has initiated a restart. This message is indicative of a success."
		else
			if ($ExitCode$ = "3010")
				comment "looks good: setup program gives exitcode 3010"
				comment "ERROR_SUCCESS_REBOOT_REQUIRED	3010	A restart is required to complete the install. This message is indicative of a success."
			else
				logError "Fatal: Setup program gives an unknown exitcode unequal zero: " + $ExitCode$
				isFatalError
			endif
		endif
	endif
endif

Ich glaube ich habe zu viel mit den Befehlen herum experimentiert :(
Auszubildender Fachinformatiker
Benutzeravatar
tobias
Beiträge: 1291
Registriert: 20 Aug 2008, 12:36
Wohnort: Braunschweig
Kontaktdaten:

Re: Probleme mit Java De- und Installation x86 u x64

Beitrag von tobias »

wo ist der fehler? Du hast jez nur geposted das irgendwas nicht geht aber nicht was genau nicht geht :mrgreen:

Und Logdateien sind immer Hilfreich ;)
seemax1991
Beiträge: 38
Registriert: 14 Jan 2013, 14:51

Re: Probleme mit Java De- und Installation x86 u x64

Beitrag von seemax1991 »

>.<'' vergessen ...moment...

Das ist das Log von der Installation (hab versucht einfach mal "drüber" zu installieren, über die alte Installation indem ich manuell im oce die werte auf none und not installed gesetzt habe und ihm dann on demand das setup gefüttert habe.)

Code: Alles auswählen

[5] [Jan 14 14:42:36:291] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[5] [Jan 14 14:42:36:291] Resolved sequence of products (14.01.2013 14:42:36): 
[5] [Jan 14 14:42:36:291] Product 0 	java : setup
[5] [Jan 14 14:42:36:291] Product 7 	swaudit : always
[5] [Jan 14 14:42:36:291] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[6] [Jan 14 14:42:36:330] JSON service request https://10.200.162.27:4447/rpc getProductProperties_hash
[6] [Jan 14 14:42:36:441] JSON Bench for getProductProperties_hash "params":["java","wts-ittest01.wulff.lan"],"id":1} Start: 14:42:36:329 Time: 00:00:00:112
[6] [Jan 14 14:42:36:453] JSON service request https://10.200.162.27:4447/rpc getProduct_hash
[6] [Jan 14 14:42:36:569] JSON Bench for getProduct_hash "params":["java","ununoctium.wulff.lan"],"id":1} Start: 14:42:36:453 Time: 00:00:00:116
[6] [Jan 14 14:42:36:582] JSON service request https://10.200.162.27:4447/rpc productOnClient_getObjects
[6] [Jan 14 14:42:36:644] JSON Bench for productOnClient_getObjects "params":["",{"clientId":"wts-ittest01.wulff.lan", Start: 14:42:36:581 Time: 00:00:00:063
[5] [Jan 14 14:42:36:656] scriptname: "setup.ins", special path: "p:\java\"
[6] [Jan 14 14:42:36:657] JSON service request https://10.200.162.27:4447/rpc productOnClient_updateObject
[6] [Jan 14 14:42:36:729] JSON Bench for productOnClient_updateObject "params":[{"clientId":"wts-ittest01.wulff.lan","ac Start: 14:42:36:657 Time: 00:00:00:072
[1] [Jan 14 14:42:36:763] 
[1] [Jan 14 14:42:36:763] ============ Version 4.11.3.3 WIN32 script "p:\java\setup.ins"
[1] [Jan 14 14:42:36:763]              start: 2013-01-14  14:42:36 
[1] [Jan 14 14:42:36:763]              installing product: java_6u37-1
[1] [Jan 14 14:42:36:763]              on client named    "wts-ittest01.wulff.lan"
[1] [Jan 14 14:42:36:764]              loggedin user    "wtsopsitest"
[1] [Jan 14 14:42:36:764]              winst running as    "SYSTEM"
[1] [Jan 14 14:42:36:765]              winst running with admin privileges
[1] [Jan 14 14:42:36:765]              winst running in standard script mode
[1] [Jan 14 14:42:36:765] [executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"]
[1] [Jan 14 14:42:36:765] system infos:
[1] [Jan 14 14:42:36:789] AA-8F-86-E0-01-DD  -  PC hardware address
[1] [Jan 14 14:42:36:789] wts-ittest01  -  IP name 
[1] [Jan 14 14:42:36:789] 10.200.171.36  -  IP address
[1] [Jan 14 14:42:36:789] DEU  -  System default locale 
[1] [Jan 14 14:42:36:789] MS Windowds 6.1 64 Bit
[1] [Jan 14 14:42:36:789] opsi service version : 4
[1] [Jan 14 14:42:36:789] 
[6] [Jan 14 14:42:36:790] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion]  opened
[6] [Jan 14 14:42:36:790] Key closed
[6] [Jan 14 14:42:36:946] opsi-winst has version  4.11.3.3, required is : >= 4.10.8.6
[5] [Jan 14 14:42:36:947] 
[5] [Jan 14 14:42:36:947] Set  $INST_SystemType$ = GetSystemType
[6] [Jan 14 14:42:36:947]   The value of the variable "$INST_SystemType$" is now: "64 Bit System"
[5] [Jan 14 14:42:36:948] 
[5] [Jan 14 14:42:36:948] Set  $INST_architecture$ = GetProductProperty("install_architecture","system specific")
[6] [Jan 14 14:42:36:948]   The value of the variable "$INST_architecture$" is now: "system specific"
[5] [Jan 14 14:42:36:948] 
[5] [Jan 14 14:42:36:948] Set  $MinimumSpace$       = "50 MB"
[6] [Jan 14 14:42:36:948]   The value of the variable "$MinimumSpace$" is now: "50 MB"
[5] [Jan 14 14:42:36:948] 
[5] [Jan 14 14:42:36:948] Set  $LicenseRequired$    = "false"
[6] [Jan 14 14:42:36:948]   The value of the variable "$LicenseRequired$" is now: "false"
[5] [Jan 14 14:42:36:948] 
[5] [Jan 14 14:42:36:948] Set  $LicensePool$        = "p_" + $ProductId$
[6] [Jan 14 14:42:36:948]   The value of the variable "$LicensePool$" is now: "p_"
[5] [Jan 14 14:42:36:948] 
[5] [Jan 14 14:42:36:948] Set  $ProductId$		 = "java"
[6] [Jan 14 14:42:36:948]   The value of the variable "$ProductId$" is now: "java"
[5] [Jan 14 14:42:36:948] 
[5] [Jan 14 14:42:36:948] Set  $Executable32$       = "jre-6u37-windows-i586.exe"
[6] [Jan 14 14:42:36:948]   The value of the variable "$Executable32$" is now: "jre-6u37-windows-i586.exe"
[5] [Jan 14 14:42:36:948] 
[5] [Jan 14 14:42:36:948] Set  $Executable64$       = "jre-6u37-windows-x64.exe"
[6] [Jan 14 14:42:36:949]   The value of the variable "$Executable64$" is now: "jre-6u37-windows-x64.exe"
[5] [Jan 14 14:42:36:949] 
[5] [Jan 14 14:42:36:949] If
[6] [Jan 14 14:42:36:963]     Free on Disk C:: 18.212.958.208 bytes  This is more than the required amount of 50.000.000 bytes
[5] [Jan 14 14:42:36:963]   HasMinimumSpace ("C:", $MinimumSpace$)   <<< result true
[5] [Jan 14 14:42:36:963]   not(HasMinimumSpace ("C:", $MinimumSpace$))   <<< result false
[5] [Jan 14 14:42:36:963] Then
[5] [Jan 14 14:42:36:963] 
[5] [Jan 14 14:42:36:963] Else
[5] [Jan 14 14:42:36:963]   comment: Show product picture
[5] [Jan 14 14:42:37:018]   comment: Installiere java (32/64 Bit)
[5] [Jan 14 14:42:37:018]   
[5] [Jan 14 14:42:37:018]   If
[5] [Jan 14 14:42:37:018]     $INST_SystemType$ = "x86 System"   <<< result false
[5] [Jan 14 14:42:37:018]     $INST_architecture$ = "system specific"   <<< result true
[5] [Jan 14 14:42:37:018]     ($INST_architecture$ = "system specific")   <<< result true
[5] [Jan 14 14:42:37:019]     ($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")   <<< result false
[5] [Jan 14 14:42:37:019]     $INST_architecture$ = "both"   <<< result false
[5] [Jan 14 14:42:37:019]     $INST_architecture$ = "32 only"   <<< result false
[5] [Jan 14 14:42:37:019]     ($INST_architecture$ = "32 only")   <<< result false
[5] [Jan 14 14:42:37:019]     ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")   <<< result false
[5] [Jan 14 14:42:37:019]     (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")   <<< result false
[5] [Jan 14 14:42:37:019]   Then
[5] [Jan 14 14:42:37:019]   EndIf
[5] [Jan 14 14:42:37:019]   
[5] [Jan 14 14:42:37:019]   If
[5] [Jan 14 14:42:37:019]     $INST_SystemType$ = "64 Bit System"   <<< result true
[5] [Jan 14 14:42:37:019]     $INST_architecture$ = "system specific"   <<< result true
[5] [Jan 14 14:42:37:020]     $INST_architecture$ = "both"   <<< result false
[5] [Jan 14 14:42:37:020]     $INST_architecture$ = "64 only"   <<< result false
[5] [Jan 14 14:42:37:020]     ($INST_architecture$ = "64 only")   <<< result false
[5] [Jan 14 14:42:37:020]     ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")   <<< result false
[5] [Jan 14 14:42:37:020]     ($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")   <<< result true
[5] [Jan 14 14:42:37:020]     (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))   <<< result true
[5] [Jan 14 14:42:37:020]     ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))   <<< result true
[5] [Jan 14 14:42:37:020]   Then
[5] [Jan 14 14:42:37:020]     message 64Bit System identifiziert Java 64Bit wird installiert
[5] [Jan 14 14:42:37:026]     comment: Start setup program
[5] [Jan 14 14:42:37:026]     
[5] [Jan 14 14:42:37:026]     Set  $InstallDir$ = "C:\Program Files (x86)\Java"
[2] [Jan 14 14:42:37:027]     Syntax Error in Section: Actions (Command in line 52): $InstallDir$ = "C:\Program Files (x86)\Java" -> Variable unbekannt
[5] [Jan 14 14:44:18:788]     
[5] [Jan 14 14:44:18:788]     Execution of Winbatch_Install_64-Bit
[6] [Jan 14 14:44:19:567]       Call ""P:\java\jre-6u37-windows-x64.exe" /s MOZILLA=1"
[6] [Jan 14 14:44:19:567]          Waiting until the called process is finished
[6] [Jan 14 14:44:19:569]       Start process as invoker: SYSTEM
[6] [Jan 14 14:44:29:636]       ExitCode 1603    Executed process ""P:\java\jre-6u37-windows-x64.exe" /s MOZILLA=1"
[6] [Jan 14 14:44:29:642]     
[6] [Jan 14 14:44:29:642]     ~~~~~~~ Start Sub ~~~~~~~  Sub_check_exitcode
[5] [Jan 14 14:44:29:644]     comment: Test for installation success via exit code
[5] [Jan 14 14:44:29:644]     
[5] [Jan 14 14:44:29:644]     Set  $ExitCode$ = getLastExitCode
[6] [Jan 14 14:44:29:644]       The value of the variable "$ExitCode$" is now: "1603"
[5] [Jan 14 14:44:29:644]     
[5] [Jan 14 14:44:29:644]     If
[5] [Jan 14 14:44:29:644]       $ExitCode$ = "0"   <<< result false
[5] [Jan 14 14:44:29:644]       ($ExitCode$ = "0")   <<< result false
[5] [Jan 14 14:44:29:644]     Then
[5] [Jan 14 14:44:29:645]     
[5] [Jan 14 14:44:29:645]     Else
[5] [Jan 14 14:44:29:645]       comment: Setup program gives a exitcode unequal zero: 1603
[5] [Jan 14 14:44:29:645]       
[5] [Jan 14 14:44:29:645]       If
[5] [Jan 14 14:44:29:645]         $ExitCode$ = "1605"   <<< result false
[5] [Jan 14 14:44:29:645]         ($ExitCode$ = "1605")   <<< result false
[5] [Jan 14 14:44:29:645]       Then
[5] [Jan 14 14:44:29:645]       
[5] [Jan 14 14:44:29:645]       Else
[5] [Jan 14 14:44:29:645]         
[5] [Jan 14 14:44:29:645]         If
[5] [Jan 14 14:44:29:645]           $ExitCode$ = "1641"   <<< result false
[5] [Jan 14 14:44:29:645]           ($ExitCode$ = "1641")   <<< result false
[5] [Jan 14 14:44:29:645]         Then
[5] [Jan 14 14:44:29:645]         
[5] [Jan 14 14:44:29:645]         Else
[5] [Jan 14 14:44:29:645]           
[5] [Jan 14 14:44:29:645]           If
[5] [Jan 14 14:44:29:645]             $ExitCode$ = "3010"   <<< result false
[5] [Jan 14 14:44:29:645]             ($ExitCode$ = "3010")   <<< result false
[5] [Jan 14 14:44:29:645]           Then
[5] [Jan 14 14:44:29:645]           
[5] [Jan 14 14:44:29:645]           Else
[3] [Jan 14 14:44:29:645]             Error: Fatal: Setup program gives an unknown exitcode unequal zero: 1603
[5] [Jan 14 14:44:29:646]             Error level set to fatal
[5] [Jan 14 14:44:29:646]             Process aborted
[6] [Jan 14 14:44:29:646]     
[6] [Jan 14 14:44:29:646]     ~~~~~~~ End Sub   ~~~~~~~  Sub_check_exitcode
[6] [Jan 14 14:44:29:646]     
[5] [Jan 14 14:44:29:646]     Process aborted
[1] [Jan 14 14:44:29:646] ___________________
[1] [Jan 14 14:44:29:646] script finished
[1] [Jan 14 14:44:29:646] 2 errors
[1] [Jan 14 14:44:29:646] 0 warnings
[1] [Jan 14 14:44:29:646] 
[1] [Jan 14 14:44:29:646] installed product: java Version: 6u37-1

Die Hier ist das Logfile der (nicht funktionierenden) Deinstallation.
Ich sitzt jetzt glaub ich schon 2 Monate an OPSI und den Scripten und bin langsam dabei wahnsinnig zu werden ^^

Code: Alles auswählen

[5] [Jan 15 08:36:01:737] scriptname: "uninstall.ins", special path: "p:\java\"
[1] [Jan 15 08:36:01:759] 
[1] [Jan 15 08:36:01:759] ============ Version 4.11.3.3 WIN32 script "p:\java\uninstall.ins"
[1] [Jan 15 08:36:01:759]              start: 2013-01-15  08:36:01 
[1] [Jan 15 08:36:01:760]              installing product: java_6u37-1
[1] [Jan 15 08:36:01:760]              on client named    "wts-ittest01.wulff.lan"
[1] [Jan 15 08:36:01:761]              loggedin user    "wtsopsitest"
[1] [Jan 15 08:36:01:761]              winst running as    "SYSTEM"
[1] [Jan 15 08:36:01:761]              winst running with admin privileges
[1] [Jan 15 08:36:01:761]              winst running in standard script mode
[1] [Jan 15 08:36:01:761] [executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"]
[1] [Jan 15 08:36:01:761] system infos:
[1] [Jan 15 08:36:01:786] AA-8F-86-E0-01-DD  -  PC hardware address
[1] [Jan 15 08:36:01:786] wts-ittest01  -  IP name 
[1] [Jan 15 08:36:01:786] 10.200.171.36  -  IP address
[1] [Jan 15 08:36:01:786] DEU  -  System default locale 
[1] [Jan 15 08:36:01:786] MS Windowds 6.1 64 Bit
[1] [Jan 15 08:36:01:786] opsi service version : 4
[1] [Jan 15 08:36:01:786] 
[6] [Jan 15 08:36:01:787] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion]  opened
[6] [Jan 15 08:36:01:787] Key closed
[4] [Jan 15 08:36:01:940] Warning: depricated: <LogLevel=> please use <setLogLevel=> 
[1] [Jan 15 08:36:01:940] LogLevel was 6
[1] [Jan 15 08:36:01:940] LogLevel set to 13
[5] [Jan 15 08:36:01:940] ExitOnError was True is set to false
[5] [Jan 15 08:36:01:940] ReportMessages was True is set to false
[5] [Jan 15 08:36:01:943] 
[5] [Jan 15 08:36:01:943] Set  $TEMP$ = EnvVar("TEMP")
[6] [Jan 15 08:36:01:950]   The value of the variable "$TEMP$" is now: "C:\Windows\TEMP"
[5] [Jan 15 08:36:01:951] 
[5] [Jan 15 08:36:01:951] Set  $OS$ = GetOS
[6] [Jan 15 08:36:01:951]   The value of the variable "$OS$" is now: "Windows_NT"
[5] [Jan 15 08:36:01:951] 
[5] [Jan 15 08:36:01:951] Set  $ProductId$ = "java"
[6] [Jan 15 08:36:01:951]   The value of the variable "$ProductId$" is now: "java"
[5] [Jan 15 08:36:01:951] 
[5] [Jan 15 08:36:01:951] Set  $InstallDir$ = "C:\Program Files (x86)\Java\jre6"
[6] [Jan 15 08:36:01:951]   The value of the variable "$InstallDir$" is now: "C:\Program Files (x86)\Java\jre6"
[5] [Jan 15 08:36:01:951] 
[5] [Jan 15 08:36:01:951] If
[5] [Jan 15 08:36:01:951]   $OS$ = "Windows_95"    <<< result false
[5] [Jan 15 08:36:01:951]   $OS$ = "Windows_NT" or $OS$ = "Windows_95"    <<< result true
[5] [Jan 15 08:36:01:951]   not ( $OS$ = "Windows_NT" or $OS$ = "Windows_95" )   <<< result false
[5] [Jan 15 08:36:01:951] Then
[5] [Jan 15 08:36:01:951] EndIf
[5] [Jan 15 08:36:02:005] message Deinstalliere Java
[5] [Jan 15 08:36:02:005] 
[5] [Jan 15 08:36:02:005] Set  $MsiCode$ = "{26a24ae4-039d-4ca4-87b4-2f86416037ff}"
[6] [Jan 15 08:36:02:005]   The value of the variable "$MsiCode$" is now: "{26a24ae4-039d-4ca4-87b4-2f86416037ff}"
[5] [Jan 15 08:36:02:005] 
[5] [Jan 15 08:36:02:005] Set  $DisplayName$ = GetRegistryStringValue ("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"+$MsiCode$+"] DisplayName")
[8] [Jan 15 08:36:02:005] key0 = HKLM
[7] [Jan 15 08:36:02:005] Registry started with redirection (32 Bit)
[6] [Jan 15 08:36:02:006]   Info: Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{26a24ae4-039d-4ca4-87b4-2f86416037ff}]   could not be opened by RegOpenKeyEx,  Errorno 2 "Das System kann die angegebene Datei nicht finden.<"
[6] [Jan 15 08:36:02:006]   The value of the variable "$DisplayName$" is now: ""
[5] [Jan 15 08:36:02:006] 
[5] [Jan 15 08:36:02:006] If
[5] [Jan 15 08:36:02:006]   $DisplayName$ = ""   <<< result true
[5] [Jan 15 08:36:02:006]   not ($DisplayName$ = "")   <<< result false
[5] [Jan 15 08:36:02:006] Then
[5] [Jan 15 08:36:02:006] EndIf
[1] [Jan 15 08:36:02:006] ___________________
[1] [Jan 15 08:36:02:006] script finished
[1] [Jan 15 08:36:02:006] 0 errors
[1] [Jan 15 08:36:02:006] 0 warnings
[1] [Jan 15 08:36:02:006] 
[1] [Jan 15 08:36:02:006] installed product: java Version: 6u37-1
Auszubildender Fachinformatiker
Benutzeravatar
tobias
Beiträge: 1291
Registriert: 20 Aug 2008, 12:36
Wohnort: Braunschweig
Kontaktdaten:

Re: Probleme mit Java De- und Installation x86 u x64

Beitrag von tobias »

habs mal schnell überflogen. Es schaut so aus als wenn die Installation nicht läuft. Dort kommt ExitCode 1603 und die deinstallation läuft nicht durch weil natürlich java nicht installiert ist und die MSIID in der registry daher auch nicht auffindbar ist.

Nun gilt es die Ursache für 1603 zu finden. Schau mal ob du irgendwo java setup logs findest.
seemax1991
Beiträge: 38
Registriert: 14 Jan 2013, 14:51

Re: Probleme mit Java De- und Installation x86 u x64

Beitrag von seemax1991 »

Auszubildender Fachinformatiker
seemax1991
Beiträge: 38
Registriert: 14 Jan 2013, 14:51

Re: Probleme mit Java De- und Installation x86 u x64

Beitrag von seemax1991 »

Neuster Fehler Log bei der Installation.

Änderungen:
- Hatte vergessen $InstallDir$ als Variable zu definieren
- Dann habe ich den Befehl Set $InstallDir$ = "%ProgramFiles32Dir%\Java" und "%ProgramFiles64Dir%\Java" aus diesem Abschnitt entfernt:

Code: Alles auswählen

    if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "syst
        Message "32Bit System identifiziert Java 32Bit wird installiert"
        comment "Start setup program"
        Winbatch_Install_32-Bit
        Sub_check_exitcode
    endif

    if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "s
        Message "64Bit System identifiziert Java 64Bit wird installiert"
        comment "Start setup program"
        Winbatch_Install_64-Bit
        Sub_check_exitcode
    endif
und in diese Abschnitte eingefügt, was aber auch nicht so recht klappen will:

Code: Alles auswählen

[Winbatch_Install_32-Bit]
Set $InstallDir$ = "%ProgramFiles32Dir%\Java"
"%ScriptPath%\jre-6u37-windows-i586.exe" /s MOZILLA=1

[Winbatch_Install_64-Bit]
Set $InstallDir$ = "%ProgramFiles64Dir%\Java"
"%ScriptPath%\jre-6u37-windows-x64.exe" /s MOZILLA=1

Anmerkungen:
Trotzdem beendet OPSI das Installationsverfahren und installiert Java 64Bit auf dem PC ?!?!?!





gesamtes Install Log:

Code: Alles auswählen

[1] [Jan 15 11:42:03:402] ============ Version 4.11.3.3 WIN32 script "p:\java\setup.ins"
[1] [Jan 15 11:42:03:402]              start: 2013-01-15  11:42:03 
[1] [Jan 15 11:42:03:402]              installing product: java_6u37-1
[1] [Jan 15 11:42:03:402]              on client named    "wts-ittest01.wulff.lan"
[1] [Jan 15 11:42:03:404]              loggedin user    "wtsopsitest"
[1] [Jan 15 11:42:03:405]              winst running as    "SYSTEM"
[1] [Jan 15 11:42:03:405]              winst running with admin privileges
[1] [Jan 15 11:42:03:405]              winst running in standard script mode
[1] [Jan 15 11:42:03:405] [executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"]
[1] [Jan 15 11:42:03:405] system infos:
[1] [Jan 15 11:42:03:425] AA-8F-86-E0-01-DD  -  PC hardware address
[1] [Jan 15 11:42:03:425] wts-ittest01  -  IP name 
[1] [Jan 15 11:42:03:425] 10.200.171.36  -  IP address
[1] [Jan 15 11:42:03:425] DEU  -  System default locale 
[1] [Jan 15 11:42:03:425] MS Windowds 6.1 64 Bit
[1] [Jan 15 11:42:03:425] opsi service version : 4
[1] [Jan 15 11:42:03:425] 
[6] [Jan 15 11:42:03:426] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion]  opened
[6] [Jan 15 11:42:03:426] Key closed
[6] [Jan 15 11:42:03:582] opsi-winst has version  4.11.3.3, required is : >= 4.10.8.6
[5] [Jan 15 11:42:03:583] 
[5] [Jan 15 11:42:03:583] Set  $INST_SystemType$ = GetSystemType
[6] [Jan 15 11:42:03:583]   The value of the variable "$INST_SystemType$" is now: "64 Bit System"
[5] [Jan 15 11:42:03:583] 
[5] [Jan 15 11:42:03:583] Set  $INST_architecture$ = GetProductProperty("install_architecture","system specific")
[6] [Jan 15 11:42:03:583]   The value of the variable "$INST_architecture$" is now: "system specific"
[5] [Jan 15 11:42:03:583] 
[5] [Jan 15 11:42:03:583] Set  $MinimumSpace$       = "50 MB"
[6] [Jan 15 11:42:03:583]   The value of the variable "$MinimumSpace$" is now: "50 MB"
[5] [Jan 15 11:42:03:583] 
[5] [Jan 15 11:42:03:583] Set  $LicenseRequired$    = "false"
[6] [Jan 15 11:42:03:583]   The value of the variable "$LicenseRequired$" is now: "false"
[5] [Jan 15 11:42:03:583] 
[5] [Jan 15 11:42:03:583] Set  $LicensePool$        = "p_" + $ProductId$
[6] [Jan 15 11:42:03:583]   The value of the variable "$LicensePool$" is now: "p_"
[5] [Jan 15 11:42:03:583] 
[5] [Jan 15 11:42:03:583] Set  $ProductId$		 = "java"
[6] [Jan 15 11:42:03:583]   The value of the variable "$ProductId$" is now: "java"
[5] [Jan 15 11:42:03:583] 
[5] [Jan 15 11:42:03:583] Set  $Executable32$       = "jre-6u37-windows-i586.exe"
[6] [Jan 15 11:42:03:583]   The value of the variable "$Executable32$" is now: "jre-6u37-windows-i586.exe"
[5] [Jan 15 11:42:03:583] 
[5] [Jan 15 11:42:03:583] Set  $Executable64$       = "jre-6u37-windows-x64.exe"
[6] [Jan 15 11:42:03:583]   The value of the variable "$Executable64$" is now: "jre-6u37-windows-x64.exe"
[5] [Jan 15 11:42:03:583] 
[5] [Jan 15 11:42:03:583] If
[6] [Jan 15 11:42:03:584]     Free on Disk C:: 18.895.990.784 bytes  This is more than the required amount of 50.000.000 bytes
[5] [Jan 15 11:42:03:584]   HasMinimumSpace ("C:", $MinimumSpace$)   <<< result true
[5] [Jan 15 11:42:03:584]   not(HasMinimumSpace ("C:", $MinimumSpace$))   <<< result false
[5] [Jan 15 11:42:03:584] Then
[5] [Jan 15 11:42:03:584] 
[5] [Jan 15 11:42:03:584] Else
[5] [Jan 15 11:42:03:584]   comment: Show product picture
[5] [Jan 15 11:42:03:646]   comment: Installiere java (32/64 Bit)
[5] [Jan 15 11:42:03:646]   
[5] [Jan 15 11:42:03:646]   If
[5] [Jan 15 11:42:03:653]     $INST_SystemType$ = "x86 System"   <<< result false
[5] [Jan 15 11:42:03:653]     $INST_architecture$ = "system specific"   <<< result true
[5] [Jan 15 11:42:03:653]     ($INST_architecture$ = "system specific")   <<< result true
[5] [Jan 15 11:42:03:653]     ($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")   <<< result false
[5] [Jan 15 11:42:03:653]     $INST_architecture$ = "both"   <<< result false
[5] [Jan 15 11:42:03:653]     $INST_architecture$ = "32 only"   <<< result false
[5] [Jan 15 11:42:03:653]     ($INST_architecture$ = "32 only")   <<< result false
[5] [Jan 15 11:42:03:653]     ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")   <<< result false
[5] [Jan 15 11:42:03:653]     (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")   <<< result false
[5] [Jan 15 11:42:03:653]   Then
[5] [Jan 15 11:42:03:653]   EndIf
[5] [Jan 15 11:42:03:653]   
[5] [Jan 15 11:42:03:653]   If
[5] [Jan 15 11:42:03:653]     $INST_SystemType$ = "64 Bit System"   <<< result true
[5] [Jan 15 11:42:03:654]     $INST_architecture$ = "system specific"   <<< result true
[5] [Jan 15 11:42:03:654]     $INST_architecture$ = "both"   <<< result false
[5] [Jan 15 11:42:03:654]     $INST_architecture$ = "64 only"   <<< result false
[5] [Jan 15 11:42:03:654]     ($INST_architecture$ = "64 only")   <<< result false
[5] [Jan 15 11:42:03:654]     ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")   <<< result false
[5] [Jan 15 11:42:03:654]     ($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")   <<< result true
[5] [Jan 15 11:42:03:654]     (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))   <<< result true
[5] [Jan 15 11:42:03:654]     ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))   <<< result true
[5] [Jan 15 11:42:03:654]   Then
[5] [Jan 15 11:42:03:655]     message 64Bit System identifiziert Java 64Bit wird installiert
[5] [Jan 15 11:42:03:669]     comment: Start setup program
[5] [Jan 15 11:42:03:669]     
[5] [Jan 15 11:42:03:669]     Execution of Winbatch_Install_64-Bit
[6] [Jan 15 11:42:03:670]       Call "Set  = "C:\Program Files\Java""
[6] [Jan 15 11:42:03:670]          Waiting until the called process is finished
[6] [Jan 15 11:42:03:670]       Start process as invoker: SYSTEM
[3] [Jan 15 11:42:03:671]       Exception in StartProcess_cp: Failed to execute Set  = "C:\Program Files\Java" : 2
[6] [Jan 15 11:42:03:671]       
[6] [Jan 15 11:42:03:674]       Call ""P:\java\jre-6u37-windows-x64.exe" /s MOZILLA=1"
[6] [Jan 15 11:42:03:674]          Waiting until the called process is finished
[6] [Jan 15 11:42:03:676]       Start process as invoker: SYSTEM
[6] [Jan 15 11:42:18:777]       ExitCode 0    Executed process ""P:\java\jre-6u37-windows-x64.exe" /s MOZILLA=1"
[6] [Jan 15 11:42:18:784]     
[6] [Jan 15 11:42:18:784]     ~~~~~~~ Start Sub ~~~~~~~  Sub_check_exitcode
[5] [Jan 15 11:42:18:786]     comment: Test for installation success via exit code
[5] [Jan 15 11:42:18:786]     
[5] [Jan 15 11:42:18:786]     Set  $ExitCode$ = getLastExitCode
[6] [Jan 15 11:42:18:786]       The value of the variable "$ExitCode$" is now: "0"
[5] [Jan 15 11:42:18:786]     
[5] [Jan 15 11:42:18:786]     If
[5] [Jan 15 11:42:18:786]       $ExitCode$ = "0"   <<< result true
[5] [Jan 15 11:42:18:786]       ($ExitCode$ = "0")   <<< result true
[5] [Jan 15 11:42:18:786]     Then
[5] [Jan 15 11:42:18:787]       comment: Looks good: setup program gives exitcode zero
[5] [Jan 15 11:42:18:787]     
[5] [Jan 15 11:42:18:787]     Else
[5] [Jan 15 11:42:18:787]       
[5] [Jan 15 11:42:18:787]       If
[5] [Jan 15 11:42:18:787]       Then
[5] [Jan 15 11:42:18:787]       
[5] [Jan 15 11:42:18:787]       Else
[5] [Jan 15 11:42:18:787]         
[5] [Jan 15 11:42:18:787]         If
[5] [Jan 15 11:42:18:787]         Then
[5] [Jan 15 11:42:18:787]         
[5] [Jan 15 11:42:18:787]         Else
[5] [Jan 15 11:42:18:787]           
[5] [Jan 15 11:42:18:787]           If
[5] [Jan 15 11:42:18:787]           Then
[5] [Jan 15 11:42:18:787]           
[5] [Jan 15 11:42:18:787]           Else
[5] [Jan 15 11:42:18:787]           EndIf
[5] [Jan 15 11:42:18:787]         EndIf
[5] [Jan 15 11:42:18:787]       EndIf
[5] [Jan 15 11:42:18:787]     EndIf
[6] [Jan 15 11:42:18:787]     
[6] [Jan 15 11:42:18:787]     ~~~~~~~ End Sub   ~~~~~~~  Sub_check_exitcode
[6] [Jan 15 11:42:18:787]     
[5] [Jan 15 11:42:18:787]   EndIf
[5] [Jan 15 11:42:18:787] EndIf
[5] [Jan 15 11:42:18:787] EndIf
[2] [Jan 15 11:42:18:787] Syntax Error in Section: Actions (Command in line 67):  -> EndIf  ohne  If
[1] [Jan 15 11:42:57:295] ___________________
[1] [Jan 15 11:42:57:295] script finished
[1] [Jan 15 11:42:57:295] 2 errors
[1] [Jan 15 11:42:57:295] 0 warnings
[1] [Jan 15 11:42:57:295] 
[1] [Jan 15 11:42:57:295] installed product: java Version: 6u37-1

Als Fehler ausgeworfener Code:

Code: Alles auswählen

[6] [Jan 15 11:42:03:670]       Call "Set  = "C:\Program Files\Java""
[6] [Jan 15 11:42:03:670]          Waiting until the called process is finished
[6] [Jan 15 11:42:03:670]       Start process as invoker: SYSTEM
[3] [Jan 15 11:42:03:671]       Exception in StartProcess_cp: Failed to execute Set  = "C:\Program Files\Java" : 2
[6] [Jan 15 11:42:03:671]       
[6] [Jan 15 11:42:03:674]       Call ""P:\java\jre-6u37-windows-x64.exe" /s MOZILLA=1"
[6] [Jan 15 11:42:03:674]          Waiting until the called process is finished
[6] [Jan 15 11:42:03:676]       Start process as invoker: SYSTEM
[6] [Jan 15 11:42:18:777]       ExitCode 0    Executed process ""P:\java\jre-6u37-windows-x64.exe" /s MOZILLA=1"

Code: Alles auswählen

[5] [Jan 15 11:42:18:787] EndIf
[2] [Jan 15 11:42:18:787] Syntax Error in Section: Actions (Command in line 67):  -> EndIf  ohne  If
Das letzte ist Schrott, den in line 67 steht endif

EDIT:
habe das Endif entfernt dann blieb der Fehler schonmal aus...
Hab die InstallDir-Angabe jetzt komplett weggelassen... das Log zeigt soweit keine Merkwürdigkeiten, die Deinstallation funktioniert aber immer noch nicht.
Auszubildender Fachinformatiker
seemax1991
Beiträge: 38
Registriert: 14 Jan 2013, 14:51

Re: Probleme mit Java De- und Installation x86 u x64

Beitrag von seemax1991 »

Echt niemand eine Idee :/?
Auszubildender Fachinformatiker
Benutzeravatar
tobias
Beiträge: 1291
Registriert: 20 Aug 2008, 12:36
Wohnort: Braunschweig
Kontaktdaten:

Re: Probleme mit Java De- und Installation x86 u x64

Beitrag von tobias »

scheint doch durchgelaufen zu sein ExitCode = 0 und wenn du das Endif wegnimmst welches zu viel ist sollte es doch alles laufen ;)
seemax1991
Beiträge: 38
Registriert: 14 Jan 2013, 14:51

Re: Probleme mit Java De- und Installation x86 u x64

Beitrag von seemax1991 »

Ich hab letztens aus Frustration erstmal OPSI getötet :) um meine eigene Unfähigkeit zu vertuschen... *hust*
Hab noch tausende andere sachen ausprobiert und hab letztendlich aufgegeben und mich dazu entschieden OPSI nochmal komplett neu aufzusetzten.
Auszubildender Fachinformatiker
Antworten