Registry value

Nov 13, 2006 1 Replies

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



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

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required