Reg Key Problems

J

James Proctor

Hi there, Im just looking into distributing my app and playing on with
the setup wizard in VS 2003. Im setting up the registry keys that i want
the software to use. Up until now ive been using the key:

HKEY_CURRENT_USER\Software\VB and VBA Program Settings\AppName

And using the GetSettings and Save Setting values.

How ever now i am using the key:

HKEY_CURRENT_USER\Software\AppName

My question is how can i get VB to read this key instead of the first
one?

Any help would be great.

JP
 
K

Klaus Löffelmann

James,

take a look at the Registry and the RegistryKey classes in the VS-Help.
You probably also want to consider the location were to put your settings.
If you use HKEY_CURRENT_USER keep in mind that the settings are only valid
for the user who has been logged on when he installed your app. If you want
every user being able to use the app, no matter which one was logged on at
the time you actually installed the app, you should consider to use
HKEY_LOCAL_MACHINE/SOFTWARE for storing your application settings.

Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top