Hallo,
ich würde gerne instalierte software auslesen, dabei aber die Windows Update ausblenden eine idee?
Eine Idee wie ich mein Problem lösen Könnte?
Danke
SubZero
Spoiler anzeigen
$sBaseKey = "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\"
[/autoit] [autoit][/autoit] [autoit]$iKey = 1
$sSoftwareName = ""
$sLogfile = "C:\software.txt"
$hFile = FileOpen ( $sLogfile, 10 )
if @error Then
MsgBox ( 64, "Error", "Could not open File")
Exit
EndIf
while 1
$sKey = RegEnumKey ( $sBaseKey , $iKey )
if @error then ExitLoop
$sDisplayName = RegRead ( $sBaseKey & "\" & $sKey , "DisplayName")
if @error Then
$sDisplayName = RegRead ( $sBaseKey & "\" & $sKey , "QuietDisplayName")
if @error then
$iKey += 1
ContinueLoop
EndIf
EndIf
;_ArrayDisplay($sDisplayName)
FileWriteLine ( $hFile, $sDisplayName & @crlf)
$iKey += 1
WEnd