To Install/Uninstall/Update our software, our custom installer uses WindowsInstaller.Installer.Products
to get the list of installed products from windows registry.
And on some client machines, an unknown software is probably adding a new entry to the registry 'HKEY_LOCAL_MACHINESOFTWAREClassesInstallerProducts' a key with name something like 'ABCD'. This is causing WindowsInstaller.Installer.Products
to throw an exception. I can re create this scenario by manually adding a registry key entry into 'HKEY_LOCAL_MACHINESOFTWAREClassesInstallerProducts' named 'test'. And if I rename test to a new GUID then the simulated problem gets solved.
Can you suggest any possible workaround/solution?
Using MSIINV.exe tool would be difficult, as that is a 3rd party tool, but that seems to help.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…