Quantcast
Channel: Wsus Package Publisher
Viewing all articles
Browse latest Browse all 3825

New Post: Version check through registry keys. I don't really understand...

$
0
0
This is unacceptable :-)

I have made two updates with the same "IsInstalled" Rule :
  • Reg_SZ To Version = 33.1.0.0 and a registry Value : DisplayVersion = 33.1
In first update, the rule was put at update level. In the second update, the rule was put at package level.
After triggering a manual detection. This is what I can see in WindowsUpdate.log :
  • For the first update :
EEHndlr EE: Evaluating RegSzToVersion: Subkey=SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Test, value=DisplayVersion, version=33.1.0.0
EEHndlr RegSzToVersion: Successfully opened Subkey SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Test
EEHndlr RegSzToVersion: Successfully queried value DisplayVersion: data: 33.1
EEHndlr EE: RegSzToVersion evaluated to False, return hr=0
  • For the second update :
EE: Evaluating RegSzToVersion: Subkey=SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Test, value=DisplayVersion, version=33.1.0.0
EEHndlr RegSzToVersion: Successfully opened Subkey SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Test
EEHndlr RegSzToVersion: Successfully queried value DisplayVersion: data: 33.1
EEHndlr EE: RegSzToVersion evaluated to True, return hr=0

Don't ask me why, but the same rule is not evaluated the same way if it be in Update Level or Package Level.

Put your rule at package level, and compare 33.1.0.0 with the registry Data.

Viewing all articles
Browse latest Browse all 3825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>