Seite 1 von 1

Autoit-Problem

Verfasst: 30 Mai 2012, 22:33
von UWegmann
Nach einer Installation rufe ich eine Autoit - Sektion auf, um die Anwendung zu konfigurieren:

Code: Alles auswählen

ExecWith_autoit_confirm_LN8 %SCRIPTPATH%\config/autoit3.exe WINST /letThemGo 
Es erscheint eine Autoit - Fehlermeldung:
Error reading the file: c:\opsi.org\tmp\_winstbat_1.bat
Wo liegt da der Fehler?

Re: Autoit-Problem

Verfasst: 31 Mai 2012, 09:10
von koepkek
im Pfad zwischen config und autoit3.exe gehört ein Backslash

Hoffe es hilft

Gruß
Karsten Köpke

Re: Autoit-Problem

Verfasst: 01 Jun 2012, 11:44
von TheAngryCube
Hab einen ähnlichen Fehler. Bei mir stimmt der Pfad.

Unter Windows 7 läuft alles wie gewollt, aber unter XP öffnet sich ein Fenster mit Titel "Autoit Error" und Inhalt:

Line 0 (File "c:\opsi.org\tmp\_winstbat_1.bat"):
Error: Error opening the file.

Re: Autoit-Problem

Verfasst: 01 Jun 2012, 14:16
von TheAngryCube
Hmm,
Fehler hat sich von selbst behoben. Keine Ahnung, habe nichts geändert, geht aber auf einmal.

Re: Autoit-Problem

Verfasst: 30 Jul 2012, 14:42
von TheAngryCube
Muss den Thread wieder aus der Versenkung holen. Der Fehler ist wieder da. Komischerweise hat der gleiche Aufruf aber auch schon funktioniert.

Code: Alles auswählen

ExecWith_AutoIt_ProjmanError_close "%scriptdrive%\install\autoit3\autoit3.exe" WINST /letThemGo

[ExecWith_AutoIt_ProjmanError_close]
While ProcessExists("winst32.exe")
	If WinActive("Ing+ 2012","Installer besitzt keine ausreichenden Berechtigungen") Then
		ControlClick("Ing+ 2012","Installer besitzt keine ausreichenden Berechtigungen", 3001)
	EndIf
WEnd

Line 0 (File "c:\opsi.org\tmp\_winstbat_22.bat"):
Error: Error opening the file.

Jemand eine Idee.

Grüße
Jan

Re: Autoit-Problem

Verfasst: 30 Jul 2012, 16:32
von d.oertel
Hi,

opsi-winst Version ?

instlog.txt ?

gruss
d.oertel

Re: Autoit-Problem

Verfasst: 31 Jul 2012, 11:50
von TheAngryCube
Opsi-Winst: 4.11.2.9

Code: Alles auswählen

[1] [30.07.2012 14:36:31] opsi-winst 4.11.2.9 started at 30.07.2012 14:24:28
[1] [30.07.2012 14:36:31] 
[1] [30.07.2012 14:36:31] ============ Version 4.11.2.9 WIN32 script "Z:\mb2012\CLIENT_DATA\main_update.ins"
[1] [30.07.2012 14:36:31]              start: 2012-07-30  14:36:31 
[1] [30.07.2012 14:36:31]              on client named    "OPSI-CLIENT"
[1] [30.07.2012 14:36:31]              loggedin user    "Administrator"
[1] [30.07.2012 14:36:31]              winst running as    "Administrator"
[1] [30.07.2012 14:36:31]              winst running with admin privileges
[1] [30.07.2012 14:36:31]              winst running in standard script mode
[1] [30.07.2012 14:36:31] [executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"]
[1] [30.07.2012 14:36:31] system infos:
[1] [30.07.2012 14:36:31] 00-0C-29-14-A2-66  -  PC hardware address
[1] [30.07.2012 14:36:31] opsi-client.opsitest.local  -  IP name 
[1] [30.07.2012 14:36:31] 172.16.10.241  -  IP address
[1] [30.07.2012 14:36:31] DEU  -  System default locale 
[1] [30.07.2012 14:36:31] MS Windowds 6.1 64 Bit
[1] [30.07.2012 14:36:31] 
[6] [30.07.2012 14:36:31] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion]  opened
[6] [30.07.2012 14:36:31] Key closed
[1] [30.07.2012 14:36:31] LogLevel was 6
[1] [30.07.2012 14:36:31] LogLevel set to 5
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $OS$ = GetOS
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $NTVersion$ = GetMsVersionInfo
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $TEMP$ = EnvVar ("TEMP")
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $MsiExec$ = "C:\Windows\system32\msiexec.exe"
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $MinMsiExec$ = "3.0"
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $MinWinst$ = "4.11"
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $ProductMap$ = getProductMap
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $LogLevel$ = getLogLevel
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $ProductName$ = "MB Worksuite"
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $ProductVersion$ = "2012"
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $ProductFullName$ = $ProductName$ + " " + $ProductVersion$
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $ProductPicture$ = "mbaec.png"
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $IniFile$ = "mbInstall.ini"
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $TEMP$ = $TEMP$ + "\" + $ProductName$
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $InstallDrive$ = "c:"
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $InstallDir$ = "C:\Program Files\mb2012"
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $SourcesPath$ = "Z:\mb2012\CLIENT_DATA\Updates"
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $RegKey$ = "{C2004296-867D-45DD-90F5-0225AAC5B045}"
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $LicenseFile$ = getProductProperty ("lizenzdatei", "Netzwerk-347.ken")
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $ProductVersion$ = "2012.032"
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $ProductVersionOld$ = getRegistryStringValue32 ("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"+$RegKey$+"] DisplayVersion")
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $ListProductVersionOld$ = getOutStreamFromSection ('DosInAnIcon_flipdots')
[5] [30.07.2012 14:36:31]   
[5] [30.07.2012 14:36:31]   Execution of DosInAnIcon_flipdots
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $ProductVersionOld$ = takeString (10, $ListProductVersionOld$)
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $ProductVersionInstalled$ = $ProductVersionOld$
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $Command$ = "dir /B /ON '$SourcesPath$'"
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:31] Set  $PatchFiles$ = getOutStreamFromSection ('DosInAnIcon_DirUpdates')
[5] [30.07.2012 14:36:31]   
[5] [30.07.2012 14:36:31]   Execution of DosInAnIcon_DirUpdates
[5] [30.07.2012 14:36:31] 
[5] [30.07.2012 14:36:32] Set  $PatchFiles$ = getSubList (2: , $PatchFiles$)
[5] [30.07.2012 14:36:32] message Ueberpruefe Versionen
[5] [30.07.2012 14:36:32] 
[5] [30.07.2012 14:36:32] Set  $msiexec_fileinfo$ = getFileInfoMap ($MsiExec$)
[5] [30.07.2012 14:36:32] 
[5] [30.07.2012 14:36:32] Set  $MsiVersion$ = getValue ("ProductVersion", $msiexec_fileinfo$)
[5] [30.07.2012 14:36:32] 
[5] [30.07.2012 14:36:32] Set  $Result$ = CompareDotSeparatedNumbers($MinMsiExec$, $MsiVersion$)
[5] [30.07.2012 14:36:32] 
[5] [30.07.2012 14:36:32] If
[5] [30.07.2012 14:36:32]   $Result$ = "1"   <<< result false
[5] [30.07.2012 14:36:32]   ($Result$ = "1")   <<< result false
[5] [30.07.2012 14:36:32] Then
[5] [30.07.2012 14:36:32] 
[5] [30.07.2012 14:36:32] Else
[5] [30.07.2012 14:36:32]   comment: Windows Installer Version 5.0.7600.16385 ist ausreichend. Installation wird fortgesetzt
[5] [30.07.2012 14:36:32] EndIf
[5] [30.07.2012 14:36:32] 
[5] [30.07.2012 14:36:32] Set  $Result$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $ProductVersion$ )
[5] [30.07.2012 14:36:32] 
[5] [30.07.2012 14:36:32] If
[5] [30.07.2012 14:36:32]   $Result$ > "-1"    <<< result false
[5] [30.07.2012 14:36:32]   ( $Result$ > "-1" )   <<< result false
[5] [30.07.2012 14:36:32] Then
[5] [30.07.2012 14:36:32]   
[5] [30.07.2012 14:36:32]   If
[5] [30.07.2012 14:36:32]   Then
[5] [30.07.2012 14:36:32]   
[5] [30.07.2012 14:36:32]   Else
[5] [30.07.2012 14:36:32]   EndIf
[5] [30.07.2012 14:36:32] 
[5] [30.07.2012 14:36:32] Else
[5] [30.07.2012 14:36:32]   message Aktualisiere MB Worksuite auf Version 2012.032
[5] [30.07.2012 14:36:32]   
[5] [30.07.2012 14:36:32]   If
[5] [30.07.2012 14:36:32]     FileExists ("Z:\mb2012\CLIENT_DATA\winst-scripts\sub_update.ins")   <<< result true
[5] [30.07.2012 14:36:32]     not ( FileExists ("Z:\mb2012\CLIENT_DATA\winst-scripts\sub_update.ins"))   <<< result false
[5] [30.07.2012 14:36:32]   Then
[5] [30.07.2012 14:36:32]   
[5] [30.07.2012 14:36:32]   Else
[5] [30.07.2012 14:36:32]     
[5] [30.07.2012 14:36:32]     Set  $PatchesNeeded$ = "1"
[5] [30.07.2012 14:36:32]     
[b][5] [30.07.2012 14:36:32]     Execution of ExecWith_AutoIt_ProjmanError_close[/b]
[5] [30.07.2012 14:36:32]       
[5] [30.07.2012 14:36:32]       Set  $ProductVersionOld$ = getRegistryStringValue32 ("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"+$RegKey$+"] DisplayVersion")
[5] [30.07.2012 14:36:32]       
[5] [30.07.2012 14:36:32]       Set  $ListProductVersionOld$ = getOutStreamFromSection ('DosInAnIcon_flipdots')
[5] [30.07.2012 14:36:32]         
[5] [30.07.2012 14:36:32]         Execution of DosInAnIcon_flipdots
[5] [30.07.2012 14:36:32]       
[5] [30.07.2012 14:36:32]       Set  $ProductVersionOld$ = takeString (10, $ListProductVersionOld$)
[5] [30.07.2012 14:36:32]       
[5] [30.07.2012 14:36:32]       Set  $VersionToInstall$ = takeString (0, splitString ("2012.000-2012.001.msp","-"))
[5] [30.07.2012 14:36:32]       
[5] [30.07.2012 14:36:32]       Set  $Result$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $ProductVersion$ )
[5] [30.07.2012 14:36:32]       
[5] [30.07.2012 14:36:32]       If
[5] [30.07.2012 14:36:32]       $Result$ = "0"    <<< result false
[5] [30.07.2012 14:36:32]       ( $Result$ = "0" )   <<< result false
[5] [30.07.2012 14:36:32]     Then
[5] [30.07.2012 14:36:32]     
[5] [30.07.2012 14:36:32]     Else
[5] [30.07.2012 14:36:32]       
[5] [30.07.2012 14:36:32]       If
[5] [30.07.2012 14:36:32]         $Result$ = "-1"    <<< result true
[5] [30.07.2012 14:36:32]         ( $Result$ = "-1" )   <<< result true
[5] [30.07.2012 14:36:32]       Then
[5] [30.07.2012 14:36:32]         
[5] [30.07.2012 14:36:32]         Set  $PatchesNeeded$ = "1"
[5] [30.07.2012 14:36:33]         comment: Es fehlen noch Patches. Pruefen ob dieser der richtige ist...
[5] [30.07.2012 14:36:33]         
[5] [30.07.2012 14:36:33]         Set  $Result2$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $VersionToInstall$ )
[5] [30.07.2012 14:36:33]         
[5] [30.07.2012 14:36:33]         If
[5] [30.07.2012 14:36:33]           $Result2$ = "0"    <<< result false
[5] [30.07.2012 14:36:33]           ( $Result2$ = "0" )   <<< result false
[5] [30.07.2012 14:36:33]         Then
[5] [30.07.2012 14:36:33]         
[5] [30.07.2012 14:36:33]         Else
[5] [30.07.2012 14:36:33]           comment: Patch passt nicht. Weitersuchen...
[5] [30.07.2012 14:36:33]         EndIf
[5] [30.07.2012 14:36:33]       EndIf
[5] [30.07.2012 14:36:33]     EndIf
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       Set  $ProductVersionOld$ = getRegistryStringValue32 ("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"+$RegKey$+"] DisplayVersion")
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       Set  $ListProductVersionOld$ = getOutStreamFromSection ('DosInAnIcon_flipdots')
[5] [30.07.2012 14:36:33]         
[5] [30.07.2012 14:36:33]         Execution of DosInAnIcon_flipdots
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       Set  $ProductVersionOld$ = takeString (10, $ListProductVersionOld$)
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       Set  $VersionToInstall$ = takeString (0, splitString ("2012.001-2012.010.msp","-"))
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       Set  $Result$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $ProductVersion$ )
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       If
[5] [30.07.2012 14:36:33]       $Result$ = "0"    <<< result false
[5] [30.07.2012 14:36:33]       ( $Result$ = "0" )   <<< result false
[5] [30.07.2012 14:36:33]     Then
[5] [30.07.2012 14:36:33]     
[5] [30.07.2012 14:36:33]     Else
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       If
[5] [30.07.2012 14:36:33]         $Result$ = "-1"    <<< result true
[5] [30.07.2012 14:36:33]         ( $Result$ = "-1" )   <<< result true
[5] [30.07.2012 14:36:33]       Then
[5] [30.07.2012 14:36:33]         
[5] [30.07.2012 14:36:33]         Set  $PatchesNeeded$ = "1"
[5] [30.07.2012 14:36:33]         comment: Es fehlen noch Patches. Pruefen ob dieser der richtige ist...
[5] [30.07.2012 14:36:33]         
[5] [30.07.2012 14:36:33]         Set  $Result2$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $VersionToInstall$ )
[5] [30.07.2012 14:36:33]         
[5] [30.07.2012 14:36:33]         If
[5] [30.07.2012 14:36:33]           $Result2$ = "0"    <<< result false
[5] [30.07.2012 14:36:33]           ( $Result2$ = "0" )   <<< result false
[5] [30.07.2012 14:36:33]         Then
[5] [30.07.2012 14:36:33]         
[5] [30.07.2012 14:36:33]         Else
[5] [30.07.2012 14:36:33]           comment: Patch passt nicht. Weitersuchen...
[5] [30.07.2012 14:36:33]         EndIf
[5] [30.07.2012 14:36:33]       EndIf
[5] [30.07.2012 14:36:33]     EndIf
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       Set  $ProductVersionOld$ = getRegistryStringValue32 ("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"+$RegKey$+"] DisplayVersion")
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       Set  $ListProductVersionOld$ = getOutStreamFromSection ('DosInAnIcon_flipdots')
[5] [30.07.2012 14:36:33]         
[5] [30.07.2012 14:36:33]         Execution of DosInAnIcon_flipdots
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       Set  $ProductVersionOld$ = takeString (10, $ListProductVersionOld$)
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       Set  $VersionToInstall$ = takeString (0, splitString ("2012.010-2012.011.msp","-"))
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       Set  $Result$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $ProductVersion$ )
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       If
[5] [30.07.2012 14:36:33]       $Result$ = "0"    <<< result false
[5] [30.07.2012 14:36:33]       ( $Result$ = "0" )   <<< result false
[5] [30.07.2012 14:36:33]     Then
[5] [30.07.2012 14:36:33]     
[5] [30.07.2012 14:36:33]     Else
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       If
[5] [30.07.2012 14:36:33]         $Result$ = "-1"    <<< result true
[5] [30.07.2012 14:36:33]         ( $Result$ = "-1" )   <<< result true
[5] [30.07.2012 14:36:33]       Then
[5] [30.07.2012 14:36:33]         
[5] [30.07.2012 14:36:33]         Set  $PatchesNeeded$ = "1"
[5] [30.07.2012 14:36:33]         comment: Es fehlen noch Patches. Pruefen ob dieser der richtige ist...
[5] [30.07.2012 14:36:33]         
[5] [30.07.2012 14:36:33]         Set  $Result2$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $VersionToInstall$ )
[5] [30.07.2012 14:36:33]         
[5] [30.07.2012 14:36:33]         If
[5] [30.07.2012 14:36:33]           $Result2$ = "0"    <<< result false
[5] [30.07.2012 14:36:33]           ( $Result2$ = "0" )   <<< result false
[5] [30.07.2012 14:36:33]         Then
[5] [30.07.2012 14:36:33]         
[5] [30.07.2012 14:36:33]         Else
[5] [30.07.2012 14:36:33]           comment: Patch passt nicht. Weitersuchen...
[5] [30.07.2012 14:36:33]         EndIf
[5] [30.07.2012 14:36:33]       EndIf
[5] [30.07.2012 14:36:33]     EndIf
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       Set  $ProductVersionOld$ = getRegistryStringValue32 ("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"+$RegKey$+"] DisplayVersion")
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       Set  $ListProductVersionOld$ = getOutStreamFromSection ('DosInAnIcon_flipdots')
[5] [30.07.2012 14:36:33]         
[5] [30.07.2012 14:36:33]         Execution of DosInAnIcon_flipdots
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       Set  $ProductVersionOld$ = takeString (10, $ListProductVersionOld$)
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       Set  $VersionToInstall$ = takeString (0, splitString ("2012.011-2012.012.msp","-"))
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       Set  $Result$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $ProductVersion$ )
[5] [30.07.2012 14:36:33]       
[5] [30.07.2012 14:36:33]       If
[5] [30.07.2012 14:36:34]       $Result$ = "0"    <<< result false
[5] [30.07.2012 14:36:34]       ( $Result$ = "0" )   <<< result false
[5] [30.07.2012 14:36:34]     Then
[5] [30.07.2012 14:36:34]     
[5] [30.07.2012 14:36:34]     Else
[5] [30.07.2012 14:36:34]       
[5] [30.07.2012 14:36:34]       If
[5] [30.07.2012 14:36:34]         $Result$ = "-1"    <<< result true
[5] [30.07.2012 14:36:34]         ( $Result$ = "-1" )   <<< result true
[5] [30.07.2012 14:36:34]       Then
[5] [30.07.2012 14:36:34]         
[5] [30.07.2012 14:36:34]         Set  $PatchesNeeded$ = "1"
[5] [30.07.2012 14:36:34]         comment: Es fehlen noch Patches. Pruefen ob dieser der richtige ist...
[5] [30.07.2012 14:36:34]         
[5] [30.07.2012 14:36:34]         Set  $Result2$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $VersionToInstall$ )
[5] [30.07.2012 14:36:34]         
[5] [30.07.2012 14:36:34]         If
[5] [30.07.2012 14:36:34]           $Result2$ = "0"    <<< result false
[5] [30.07.2012 14:36:34]           ( $Result2$ = "0" )   <<< result false
[5] [30.07.2012 14:36:34]         Then
[5] [30.07.2012 14:36:34]         
[5] [30.07.2012 14:36:34]         Else
[5] [30.07.2012 14:36:34]           comment: Patch passt nicht. Weitersuchen...
[5] [30.07.2012 14:36:34]         EndIf
[5] [30.07.2012 14:36:34]       EndIf
[5] [30.07.2012 14:36:34]     EndIf
[5] [30.07.2012 14:36:34]       
[5] [30.07.2012 14:36:34]       Set  $ProductVersionOld$ = getRegistryStringValue32 ("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"+$RegKey$+"] DisplayVersion")
[5] [30.07.2012 14:36:34]       
[5] [30.07.2012 14:36:34]       Set  $ListProductVersionOld$ = getOutStreamFromSection ('DosInAnIcon_flipdots')
[5] [30.07.2012 14:36:34]         
[5] [30.07.2012 14:36:34]         Execution of DosInAnIcon_flipdots
[5] [30.07.2012 14:36:34]       
[5] [30.07.2012 14:36:34]       Set  $ProductVersionOld$ = takeString (10, $ListProductVersionOld$)
[5] [30.07.2012 14:36:34]       
[5] [30.07.2012 14:36:34]       Set  $VersionToInstall$ = takeString (0, splitString ("2012.012-2012.020.msp","-"))
[5] [30.07.2012 14:36:34]       
[5] [30.07.2012 14:36:34]       Set  $Result$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $ProductVersion$ )
[5] [30.07.2012 14:36:34]       
[5] [30.07.2012 14:36:34]       If
[5] [30.07.2012 14:36:34]       $Result$ = "0"    <<< result false
[5] [30.07.2012 14:36:34]       ( $Result$ = "0" )   <<< result false
[5] [30.07.2012 14:36:34]     Then
[5] [30.07.2012 14:36:34]     
[5] [30.07.2012 14:36:34]     Else
[5] [30.07.2012 14:36:34]       
[5] [30.07.2012 14:36:34]       If
[5] [30.07.2012 14:36:34]         $Result$ = "-1"    <<< result true
[5] [30.07.2012 14:36:34]         ( $Result$ = "-1" )   <<< result true
[5] [30.07.2012 14:36:34]       Then
[5] [30.07.2012 14:36:34]         
[5] [30.07.2012 14:36:34]         Set  $PatchesNeeded$ = "1"
[5] [30.07.2012 14:36:34]         comment: Es fehlen noch Patches. Pruefen ob dieser der richtige ist...
[5] [30.07.2012 14:36:34]         
[5] [30.07.2012 14:36:34]         Set  $Result2$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $VersionToInstall$ )
[5] [30.07.2012 14:36:34]         
[5] [30.07.2012 14:36:34]         If
[5] [30.07.2012 14:36:34]           $Result2$ = "0"    <<< result false
[5] [30.07.2012 14:36:34]           ( $Result2$ = "0" )   <<< result false
[5] [30.07.2012 14:36:34]         Then
[5] [30.07.2012 14:36:34]         
[5] [30.07.2012 14:36:34]         Else
[5] [30.07.2012 14:36:34]           comment: Patch passt nicht. Weitersuchen...
[5] [30.07.2012 14:36:34]         EndIf
[5] [30.07.2012 14:36:34]       EndIf
[5] [30.07.2012 14:36:34]     EndIf
[5] [30.07.2012 14:36:34]       
[5] [30.07.2012 14:36:34]       Set  $ProductVersionOld$ = getRegistryStringValue32 ("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"+$RegKey$+"] DisplayVersion")
[5] [30.07.2012 14:36:34]       
[5] [30.07.2012 14:36:34]       Set  $ListProductVersionOld$ = getOutStreamFromSection ('DosInAnIcon_flipdots')
[5] [30.07.2012 14:36:34]         
[5] [30.07.2012 14:36:34]         Execution of DosInAnIcon_flipdots
[5] [30.07.2012 14:36:34]       
[5] [30.07.2012 14:36:34]       Set  $ProductVersionOld$ = takeString (10, $ListProductVersionOld$)
[5] [30.07.2012 14:36:34]       
[5] [30.07.2012 14:36:34]       Set  $VersionToInstall$ = takeString (0, splitString ("2012.020-2012.021.msp","-"))
[5] [30.07.2012 14:36:34]       
[5] [30.07.2012 14:36:34]       Set  $Result$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $ProductVersion$ )
[5] [30.07.2012 14:36:34]       
[5] [30.07.2012 14:36:34]       If
[5] [30.07.2012 14:36:34]       $Result$ = "0"    <<< result false
[5] [30.07.2012 14:36:34]       ( $Result$ = "0" )   <<< result false
[5] [30.07.2012 14:36:34]     Then
[5] [30.07.2012 14:36:34]     
[5] [30.07.2012 14:36:34]     Else
[5] [30.07.2012 14:36:34]       
[5] [30.07.2012 14:36:34]       If
[5] [30.07.2012 14:36:34]         $Result$ = "-1"    <<< result true
[5] [30.07.2012 14:36:34]         ( $Result$ = "-1" )   <<< result true
[5] [30.07.2012 14:36:34]       Then
[5] [30.07.2012 14:36:34]         
[5] [30.07.2012 14:36:34]         Set  $PatchesNeeded$ = "1"
[5] [30.07.2012 14:36:34]         comment: Es fehlen noch Patches. Pruefen ob dieser der richtige ist...
[5] [30.07.2012 14:36:34]         
[5] [30.07.2012 14:36:34]         Set  $Result2$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $VersionToInstall$ )
[5] [30.07.2012 14:36:34]         
[5] [30.07.2012 14:36:34]         If
[5] [30.07.2012 14:36:34]           $Result2$ = "0"    <<< result false
[5] [30.07.2012 14:36:34]           ( $Result2$ = "0" )   <<< result false
[5] [30.07.2012 14:36:34]         Then
[5] [30.07.2012 14:36:34]         
[5] [30.07.2012 14:36:34]         Else
[5] [30.07.2012 14:36:34]           comment: Patch passt nicht. Weitersuchen...
[5] [30.07.2012 14:36:34]         EndIf
[5] [30.07.2012 14:36:34]       EndIf
[5] [30.07.2012 14:36:34]     EndIf
[5] [30.07.2012 14:36:34]       
[5] [30.07.2012 14:36:34]       Set  $ProductVersionOld$ = getRegistryStringValue32 ("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"+$RegKey$+"] DisplayVersion")
[5] [30.07.2012 14:36:34]       
[5] [30.07.2012 14:36:34]       Set  $ListProductVersionOld$ = getOutStreamFromSection ('DosInAnIcon_flipdots')
[5] [30.07.2012 14:36:34]         
[5] [30.07.2012 14:36:34]         Execution of DosInAnIcon_flipdots
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       Set  $ProductVersionOld$ = takeString (10, $ListProductVersionOld$)
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       Set  $VersionToInstall$ = takeString (0, splitString ("2012.021-2012.022.msp","-"))
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       Set  $Result$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $ProductVersion$ )
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       If
[5] [30.07.2012 14:36:35]       $Result$ = "0"    <<< result false
[5] [30.07.2012 14:36:35]       ( $Result$ = "0" )   <<< result false
[5] [30.07.2012 14:36:35]     Then
[5] [30.07.2012 14:36:35]     
[5] [30.07.2012 14:36:35]     Else
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       If
[5] [30.07.2012 14:36:35]         $Result$ = "-1"    <<< result true
[5] [30.07.2012 14:36:35]         ( $Result$ = "-1" )   <<< result true
[5] [30.07.2012 14:36:35]       Then
[5] [30.07.2012 14:36:35]         
[5] [30.07.2012 14:36:35]         Set  $PatchesNeeded$ = "1"
[5] [30.07.2012 14:36:35]         comment: Es fehlen noch Patches. Pruefen ob dieser der richtige ist...
[5] [30.07.2012 14:36:35]         
[5] [30.07.2012 14:36:35]         Set  $Result2$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $VersionToInstall$ )
[5] [30.07.2012 14:36:35]         
[5] [30.07.2012 14:36:35]         If
[5] [30.07.2012 14:36:35]           $Result2$ = "0"    <<< result false
[5] [30.07.2012 14:36:35]           ( $Result2$ = "0" )   <<< result false
[5] [30.07.2012 14:36:35]         Then
[5] [30.07.2012 14:36:35]         
[5] [30.07.2012 14:36:35]         Else
[5] [30.07.2012 14:36:35]           comment: Patch passt nicht. Weitersuchen...
[5] [30.07.2012 14:36:35]         EndIf
[5] [30.07.2012 14:36:35]       EndIf
[5] [30.07.2012 14:36:35]     EndIf
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       Set  $ProductVersionOld$ = getRegistryStringValue32 ("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"+$RegKey$+"] DisplayVersion")
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       Set  $ListProductVersionOld$ = getOutStreamFromSection ('DosInAnIcon_flipdots')
[5] [30.07.2012 14:36:35]         
[5] [30.07.2012 14:36:35]         Execution of DosInAnIcon_flipdots
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       Set  $ProductVersionOld$ = takeString (10, $ListProductVersionOld$)
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       Set  $VersionToInstall$ = takeString (0, splitString ("2012.022-2012.023.msp","-"))
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       Set  $Result$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $ProductVersion$ )
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       If
[5] [30.07.2012 14:36:35]       $Result$ = "0"    <<< result false
[5] [30.07.2012 14:36:35]       ( $Result$ = "0" )   <<< result false
[5] [30.07.2012 14:36:35]     Then
[5] [30.07.2012 14:36:35]     
[5] [30.07.2012 14:36:35]     Else
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       If
[5] [30.07.2012 14:36:35]         $Result$ = "-1"    <<< result true
[5] [30.07.2012 14:36:35]         ( $Result$ = "-1" )   <<< result true
[5] [30.07.2012 14:36:35]       Then
[5] [30.07.2012 14:36:35]         
[5] [30.07.2012 14:36:35]         Set  $PatchesNeeded$ = "1"
[5] [30.07.2012 14:36:35]         comment: Es fehlen noch Patches. Pruefen ob dieser der richtige ist...
[5] [30.07.2012 14:36:35]         
[5] [30.07.2012 14:36:35]         Set  $Result2$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $VersionToInstall$ )
[5] [30.07.2012 14:36:35]         
[5] [30.07.2012 14:36:35]         If
[5] [30.07.2012 14:36:35]           $Result2$ = "0"    <<< result false
[5] [30.07.2012 14:36:35]           ( $Result2$ = "0" )   <<< result false
[5] [30.07.2012 14:36:35]         Then
[5] [30.07.2012 14:36:35]         
[5] [30.07.2012 14:36:35]         Else
[5] [30.07.2012 14:36:35]           comment: Patch passt nicht. Weitersuchen...
[5] [30.07.2012 14:36:35]         EndIf
[5] [30.07.2012 14:36:35]       EndIf
[5] [30.07.2012 14:36:35]     EndIf
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       Set  $ProductVersionOld$ = getRegistryStringValue32 ("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"+$RegKey$+"] DisplayVersion")
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       Set  $ListProductVersionOld$ = getOutStreamFromSection ('DosInAnIcon_flipdots')
[5] [30.07.2012 14:36:35]         
[5] [30.07.2012 14:36:35]         Execution of DosInAnIcon_flipdots
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       Set  $ProductVersionOld$ = takeString (10, $ListProductVersionOld$)
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       Set  $VersionToInstall$ = takeString (0, splitString ("2012.023-2012.030.msp","-"))
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       Set  $Result$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $ProductVersion$ )
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       If
[5] [30.07.2012 14:36:35]       $Result$ = "0"    <<< result false
[5] [30.07.2012 14:36:35]       ( $Result$ = "0" )   <<< result false
[5] [30.07.2012 14:36:35]     Then
[5] [30.07.2012 14:36:35]     
[5] [30.07.2012 14:36:35]     Else
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       If
[5] [30.07.2012 14:36:35]         $Result$ = "-1"    <<< result true
[5] [30.07.2012 14:36:35]         ( $Result$ = "-1" )   <<< result true
[5] [30.07.2012 14:36:35]       Then
[5] [30.07.2012 14:36:35]         
[5] [30.07.2012 14:36:35]         Set  $PatchesNeeded$ = "1"
[5] [30.07.2012 14:36:35]         comment: Es fehlen noch Patches. Pruefen ob dieser der richtige ist...
[5] [30.07.2012 14:36:35]         
[5] [30.07.2012 14:36:35]         Set  $Result2$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $VersionToInstall$ )
[5] [30.07.2012 14:36:35]         
[5] [30.07.2012 14:36:35]         If
[5] [30.07.2012 14:36:35]           $Result2$ = "0"    <<< result false
[5] [30.07.2012 14:36:35]           ( $Result2$ = "0" )   <<< result false
[5] [30.07.2012 14:36:35]         Then
[5] [30.07.2012 14:36:35]         
[5] [30.07.2012 14:36:35]         Else
[5] [30.07.2012 14:36:35]           comment: Patch passt nicht. Weitersuchen...
[5] [30.07.2012 14:36:35]         EndIf
[5] [30.07.2012 14:36:35]       EndIf
[5] [30.07.2012 14:36:35]     EndIf
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       Set  $ProductVersionOld$ = getRegistryStringValue32 ("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"+$RegKey$+"] DisplayVersion")
[5] [30.07.2012 14:36:35]       
[5] [30.07.2012 14:36:35]       Set  $ListProductVersionOld$ = getOutStreamFromSection ('DosInAnIcon_flipdots')
[5] [30.07.2012 14:36:36]         
[5] [30.07.2012 14:36:36]         Execution of DosInAnIcon_flipdots
[5] [30.07.2012 14:36:36]       
[5] [30.07.2012 14:36:36]       Set  $ProductVersionOld$ = takeString (10, $ListProductVersionOld$)
[5] [30.07.2012 14:36:36]       
[5] [30.07.2012 14:36:36]       Set  $VersionToInstall$ = takeString (0, splitString ("2012.030-2012.031.msp","-"))
[5] [30.07.2012 14:36:36]       
[5] [30.07.2012 14:36:36]       Set  $Result$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $ProductVersion$ )
[5] [30.07.2012 14:36:36]       
[5] [30.07.2012 14:36:36]       If
[5] [30.07.2012 14:36:36]       $Result$ = "0"    <<< result false
[5] [30.07.2012 14:36:36]       ( $Result$ = "0" )   <<< result false
[5] [30.07.2012 14:36:36]     Then
[5] [30.07.2012 14:36:36]     
[5] [30.07.2012 14:36:36]     Else
[5] [30.07.2012 14:36:36]       
[5] [30.07.2012 14:36:36]       If
[5] [30.07.2012 14:36:36]         $Result$ = "-1"    <<< result true
[5] [30.07.2012 14:36:36]         ( $Result$ = "-1" )   <<< result true
[5] [30.07.2012 14:36:36]       Then
[5] [30.07.2012 14:36:36]         
[5] [30.07.2012 14:36:36]         Set  $PatchesNeeded$ = "1"
[5] [30.07.2012 14:36:36]         comment: Es fehlen noch Patches. Pruefen ob dieser der richtige ist...
[5] [30.07.2012 14:36:36]         
[5] [30.07.2012 14:36:36]         Set  $Result2$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $VersionToInstall$ )
[5] [30.07.2012 14:36:36]         
[5] [30.07.2012 14:36:36]         If
[5] [30.07.2012 14:36:36]           $Result2$ = "0"    <<< result true
[5] [30.07.2012 14:36:36]           ( $Result2$ = "0" )   <<< result true
[5] [30.07.2012 14:36:36]         Then
[5] [30.07.2012 14:36:36]           comment: Der Patch passt. Installieren...
[5] [30.07.2012 14:36:36]           message Installiere Patch 2012.030-2012.031.msp
[5] [30.07.2012 14:36:36]     
[5] [30.07.2012 14:36:36]     Execution of DosInAnIcon_install_patch
[5] [30.07.2012 14:41:22]       
[5] [30.07.2012 14:41:22]       Set  $ExitCode$ = getLastExitCode
[1] [30.07.2012 14:41:22]       LogLevel was 5
[1] [30.07.2012 14:41:22]       LogLevel set to 4
[1] [30.07.2012 14:41:22]               LogLevel was 4
[1] [30.07.2012 14:41:22]               LogLevel set to 5
[5] [30.07.2012 14:41:22]               comment: ExitCode = 0 Action completed successfully.
[1] [30.07.2012 14:41:22]               LogLevel was 5
[1] [30.07.2012 14:41:22]               LogLevel set to 4
[1] [30.07.2012 14:41:22]           LogLevel was 4
[1] [30.07.2012 14:41:22]           LogLevel set to 6
[6] [30.07.2012 14:41:22]       
[6] [30.07.2012 14:41:22]       ~~~~~~~ End Sub   ~~~~~~~  sub "Z:\install\check_exitcode\check_msi-exitcode.ins"
[6] [30.07.2012 14:41:22]       
[5] [30.07.2012 14:41:22]       
[5] [30.07.2012 14:41:22]       Set  $PatchesNeeded$ = "0"
[6] [30.07.2012 14:41:22]         The value of the variable "$PatchesNeeded$" is now: "0"
[5] [30.07.2012 14:41:22]         
[5] [30.07.2012 14:41:22]         Else
[5] [30.07.2012 14:41:22]         EndIf
[5] [30.07.2012 14:41:22]       EndIf
[5] [30.07.2012 14:41:22]     EndIf
[6] [30.07.2012 14:41:22]       
[6] [30.07.2012 14:41:22]       ~~~~~~~ End Sub   ~~~~~~~  sub_checkPatchToInstall
[6] [30.07.2012 14:41:22]       
[6] [30.07.2012 14:41:22]       
[6] [30.07.2012 14:41:22]       ~~~~~~~ Start Sub ~~~~~~~  sub_checkPatchToInstall
[6] [30.07.2012 14:41:22]       
[6] [30.07.2012 14:41:22]       ~~~~~~~ Start Sub ~~~~~~~  sub_getInstalledVersion
[5] [30.07.2012 14:41:22]       
[5] [30.07.2012 14:41:22]       Set  $ProductVersionOld$ = getRegistryStringValue32 ("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"+$RegKey$+"] DisplayVersion")
[6] [30.07.2012 14:41:22]         Registry key [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C2004296-867D-45DD-90F5-0225AAC5B045}]  opened
[6] [30.07.2012 14:41:22]         Key closed
[6] [30.07.2012 14:41:22]         The value of the variable "$ProductVersionOld$" is now: "20.12.0310"
[5] [30.07.2012 14:41:22]       
[5] [30.07.2012 14:41:22]       Set  $ListProductVersionOld$ = getOutStreamFromSection ('DosInAnIcon_flipdots')
[5] [30.07.2012 14:41:22]         
[5] [30.07.2012 14:41:22]         Execution of DosInAnIcon_flipdots
[6] [30.07.2012 14:41:22]           c:\opsi.org\tmp\_winstbat_34.bat saved back
[6] [30.07.2012 14:41:22]           Executing "cmd.exe" /C "c:\opsi.org\tmp\_winstbat_34.bat"
[6] [30.07.2012 14:41:23]                       
[6] [30.07.2012 14:41:23]                       output:
[6] [30.07.2012 14:41:23]                       --------------
[6] [30.07.2012 14:41:23]                       
[6] [30.07.2012 14:41:23]                       C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst>set vers=20.12.0310 
[6] [30.07.2012 14:41:23]                       
[6] [30.07.2012 14:41:23]                       C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst>set vers=20120310 
[6] [30.07.2012 14:41:23]                       
[6] [30.07.2012 14:41:23]                       C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst>set str1=2012 
[6] [30.07.2012 14:41:23]                       
[6] [30.07.2012 14:41:23]                       C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst>set str2=031 
[6] [30.07.2012 14:41:23]                       
[6] [30.07.2012 14:41:23]                       C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst>echo.2012.031
[6] [30.07.2012 14:41:23]                       2012.031
[6] [30.07.2012 14:41:23]           
[6] [30.07.2012 14:41:23]           Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [30.07.2012 14:41:23]             Search "c:\opsi.org\tmp\"
[6] [30.07.2012 14:41:23]             File "c:\opsi.org\tmp\_winstbat_34.bat"
[6] [30.07.2012 14:41:23]               The file has been deleted
[6] [30.07.2012 14:41:23]           retrieving strings from getOutStreamFromSection [switch to loglevel 7 for debugging]
[5] [30.07.2012 14:41:23]       
[5] [30.07.2012 14:41:23]       Set  $ProductVersionOld$ = takeString (10, $ListProductVersionOld$)
[6] [30.07.2012 14:41:23]           retrieving strings from $ListProductVersionOld$ [switch to loglevel 7 for debugging]
[6] [30.07.2012 14:41:23]         The value of the variable "$ProductVersionOld$" is now: "2012.031"
[6] [30.07.2012 14:41:23]       
[6] [30.07.2012 14:41:23]       ~~~~~~~ End Sub   ~~~~~~~  sub_getInstalledVersion
[6] [30.07.2012 14:41:23]       
[5] [30.07.2012 14:41:23]       
[5] [30.07.2012 14:41:23]       Set  $VersionToInstall$ = takeString (0, splitString ("2012.031-2012.032.msp","-"))
[6] [30.07.2012 14:41:23]           retrieving strings from splitString [switch to loglevel 7 for debugging]
[6] [30.07.2012 14:41:23]         The value of the variable "$VersionToInstall$" is now: "2012.031"
[5] [30.07.2012 14:41:23]       
[5] [30.07.2012 14:41:23]       Set  $Result$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $ProductVersion$ )
[6] [30.07.2012 14:41:23]         The value of the variable "$Result$" is now: "-1"
[5] [30.07.2012 14:41:23]       
[5] [30.07.2012 14:41:23]       If
[5] [30.07.2012 14:41:23]       $Result$ = "0"    <<< result false
[5] [30.07.2012 14:41:23]       ( $Result$ = "0" )   <<< result false
[5] [30.07.2012 14:41:23]     Then
[5] [30.07.2012 14:41:23]     
[5] [30.07.2012 14:41:23]     Else
[5] [30.07.2012 14:41:23]       
[5] [30.07.2012 14:41:23]       If
[5] [30.07.2012 14:41:23]         $Result$ = "-1"    <<< result true
[5] [30.07.2012 14:41:23]         ( $Result$ = "-1" )   <<< result true
[5] [30.07.2012 14:41:23]       Then
[5] [30.07.2012 14:41:23]         
[5] [30.07.2012 14:41:23]         Set  $PatchesNeeded$ = "1"
[6] [30.07.2012 14:41:23]           The value of the variable "$PatchesNeeded$" is now: "1"
[5] [30.07.2012 14:41:23]         comment: Es fehlen noch Patches. Pruefen ob dieser der richtige ist...
[5] [30.07.2012 14:41:23]         
[5] [30.07.2012 14:41:23]         Set  $Result2$ = CompareDotSeparatedNumbers ( $ProductVersionOld$ , $VersionToInstall$ )
[6] [30.07.2012 14:41:23]           The value of the variable "$Result2$" is now: "0"
[5] [30.07.2012 14:41:23]         
[5] [30.07.2012 14:41:23]         If
[5] [30.07.2012 14:41:23]           $Result2$ = "0"    <<< result true
[5] [30.07.2012 14:41:23]           ( $Result2$ = "0" )   <<< result true
[5] [30.07.2012 14:41:23]         Then
[5] [30.07.2012 14:41:23]           comment: Der Patch passt. Installieren...
[5] [30.07.2012 14:41:23]           message Installiere Patch 2012.031-2012.032.msp
[5] [30.07.2012 14:41:23]     
[5] [30.07.2012 14:41:23]     Execution of DosInAnIcon_install_patch
[6] [30.07.2012 14:41:23]       c:\opsi.org\tmp\_winstbat_35.bat saved back
[6] [30.07.2012 14:41:23]       Executing "cmd.exe" /C "c:\opsi.org\tmp\_winstbat_35.bat" 2012.031-2012.032.msp
[6] [30.07.2012 14:46:13]                   
[6] [30.07.2012 14:46:13]                   output:
[6] [30.07.2012 14:46:13]                   --------------
[6] [30.07.2012 14:46:13]                   
[6] [30.07.2012 14:46:13]                   C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst>msiexec /update "Z:\mb2012\CLIENT_DATA\Updates\2012.031-2012.032.msp" /qb! 
[6] [30.07.2012 14:46:13]       
[6] [30.07.2012 14:46:13]       Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [30.07.2012 14:46:13]         Search "c:\opsi.org\tmp\"
[6] [30.07.2012 14:46:13]         File "c:\opsi.org\tmp\_winstbat_35.bat"
[6] [30.07.2012 14:46:13]           The file has been deleted
[6] [30.07.2012 14:46:13]       
[6] [30.07.2012 14:46:13]       ~~~~~~~ Start Sub ~~~~~~~  sub "Z:\install\check_exitcode\check_msi-exitcode.ins"
[5] [30.07.2012 14:46:13]       
[5] [30.07.2012 14:46:13]       Set  $ExitCode$ = getLastExitCode
[6] [30.07.2012 14:46:13]         The value of the variable "$ExitCode$" is now: "0"
[1] [30.07.2012 14:46:13]       LogLevel was 6
[1] [30.07.2012 14:46:13]       LogLevel set to 4
[1] [30.07.2012 14:46:13]               LogLevel was 4
[1] [30.07.2012 14:46:13]               LogLevel set to 5
[5] [30.07.2012 14:46:13]               comment: ExitCode = 0 Action completed successfully.
[1] [30.07.2012 14:46:13]               LogLevel was 5
[1] [30.07.2012 14:46:13]               LogLevel set to 4
[1] [30.07.2012 14:46:13]           LogLevel was 4
[1] [30.07.2012 14:46:13]           LogLevel set to 6
[6] [30.07.2012 14:46:13]       
[6] [30.07.2012 14:46:13]       ~~~~~~~ End Sub   ~~~~~~~  sub "Z:\install\check_exitcode\check_msi-exitcode.ins"
[6] [30.07.2012 14:46:13]       
[5] [30.07.2012 14:46:13]       
[5] [30.07.2012 14:46:13]       Set  $PatchesNeeded$ = "0"
[6] [30.07.2012 14:46:13]         The value of the variable "$PatchesNeeded$" is now: "0"
[5] [30.07.2012 14:46:13]         
[5] [30.07.2012 14:46:13]         Else
[5] [30.07.2012 14:46:13]         EndIf
[5] [30.07.2012 14:46:13]       EndIf
[5] [30.07.2012 14:46:13]     EndIf
[6] [30.07.2012 14:46:13]       
[6] [30.07.2012 14:46:13]       ~~~~~~~ End Sub   ~~~~~~~  sub_checkPatchToInstall
[6] [30.07.2012 14:46:13]       
[6] [30.07.2012 14:46:13]     
[6] [30.07.2012 14:46:13]     ~~~~~~ End Loop
[5] [30.07.2012 14:46:13]     
[5] [30.07.2012 14:46:13]     If
[5] [30.07.2012 14:46:13]       $PatchesNeeded$ = "1"    <<< result false
[5] [30.07.2012 14:46:13]       ( $PatchesNeeded$ = "1" )   <<< result false
[5] [30.07.2012 14:46:13]     Then
[5] [30.07.2012 14:46:13]     
[5] [30.07.2012 14:46:13]     Else
[5] [30.07.2012 14:46:13]       comment: Es wurden alle Patches installiert. Das Produkt ist aktuell
[5] [30.07.2012 14:46:13]     EndIf
[6] [30.07.2012 14:46:13]     Section ending since next line is starting with "["
[6] [30.07.2012 14:46:13]     
[6] [30.07.2012 14:46:13]     ~~~~~~~ End Sub   ~~~~~~~  sub "Z:\mb2012\CLIENT_DATA\winst-scripts\sub_update.ins"
[6] [30.07.2012 14:46:13]     
[5] [30.07.2012 14:46:13]   EndIf
[5] [30.07.2012 14:46:13] EndIf
[1] [30.07.2012 14:46:13] ___________________
[1] [30.07.2012 14:46:13] script finished
[1] [30.07.2012 14:46:13] 0 errors
[1] [30.07.2012 14:46:13] 0 warnings
[1] [30.07.2012 14:46:13] 
[1] [30.07.2012 14:46:13] 
[6] [30.07.2012 14:46:13] Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [30.07.2012 14:46:13]   Search "c:\opsi.org\tmp\"

Re: Autoit-Problem

Verfasst: 31 Jul 2012, 17:06
von d.oertel
Hi,

sollte eigentlich nicht vorkommen (in dieser Version).

Gibt es c:\opsi.org\tmp ?

Mal den Loglevel auf 8 setzen.

Was sagt ein Lauf von opsi-winst-test ?

gruss
d.oertel

Re: Autoit-Problem

Verfasst: 08 Aug 2012, 13:00
von TheAngryCube
Interessanterweise lässt sich der Fehler nicht reproduzieren.
Ich habe die Installation jetzt 3 mal ausgeführt, der Fehler trat aber nur beim ersten Mal auf. Die VM wurde aber jedesmal per Snapshot zurückgesetzt...Keine Ahnung was den Fehler verursacht.

c:\opsi.org\tmp existiert

Grüße
Jan

Re: Autoit-Problem

Verfasst: 08 Aug 2012, 15:08
von d.oertel
Hi,

da diese temporären Dateien eventuell security relevante Daten enthalten können, wurde ab Version 4.11.2.1 der Ort verlegt
von c:\tmp nach c:\opsi.org\tmp, damit nicht mehr jeder reinschauen kann. Weiterhin wird versucht Dateien welche nicht mehr benötigt werden
so schnell wie möglich zu löschen. Dies ist üblicherweise der Fall wenn die Sektion abgearbeitet ist. Natürlich darf die Datei nicht gelöscht werden, wenn der Prozess mit 'winst /letThemGo' in den Hintergrund geschoben wird.

Ich vermute das hier irgend etwas klemmt. Aber zur näheren Untersuchung müsste man es reproduzieren können.

gruß
d.oertel