I am doing Add-in Setup project now. During the install and setup process, I need to check the registry and see if the Add-in has been registered to Pos registry, if it has, then I update the detail, if not, then find the first available empty key and set the registry value. The code I am using to find if it is already there is:
If My.Computer.Registry.GetValue(lsHook, "ObjectName", Nothing) "MyProject.MyClass" then ' update the detail
But when installing, it always adds new key setting to the registry, seems it never be able to find the existed one. What's wrong with my code?
Thanks Leanne