This is an old topic but I hope someone picks up. I ended up with the same trouble just recently.
What I can add to this, is that when you run wbemtest and check the classes' class contect, both show the same regkey path:"local|HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall"So I was trying to run wbemtest from a x86
powershell console - well to my surprise it cannot run. Even if you go to %systemroot%\system32\wbem and do a dir, wbemtest.exe is not shown... lol.
If you export from HINV classes (in client settings) and check the generated mof file though, the respective classes have this context entry:
SMS_Context_1 ("__ProviderArchitecture=32|SInt32"), - for win32reg_addremoveprograms
and
SMS_Context_1 ("__ProviderArchitecture=64|SInt32"), - for win32reg_addremoveprograms64
I do not understand mof this deep, but i believe this would define the architecture context in which querying the class would happen. Anyway though, this still disturbs me a lot as I assumed one will be for regular uninstall regkey parsing, the other would
be the same under wow6432 node.
I guess this is to avoid issues on x86 architectures? Or bad design?
@Chris - have you come to any conclusion since then?
Cheers
cgsilver
-
Edited by
cgsilver
2 hours 31 minutes ago