Registry value

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

Reply to
Leanne
Loading thread data ...

your question is a pure programming question, i don't think this's the proper newsgroup for this

Reply to
Nashat

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.