G
Guest
Hello,
I've been reading this newsgroup for some time and have found all of you
very helpful and knowledgable. So, first and foremost, thank you for all your
help you've provided and don't even realize it! Secondly, here's my
question...
I haven't seen this addressed so maybe it's common knowledge, and I'm just a
moron, but here goes:
How do I add a key to the registry during runtime?
Here's the scenario:
The opens the program, it checks for a value in the registry. If the value
is not there, it prompts the user to register. After the user registers, I
need the program to store the created value in the appropriate key. That way,
the next time the program is run, the user will not be prompted for
registration again.
The key to be created is called "Auth" and it is in the following directory:
HKEY_LOCAL_MACHINE\Software\AppName
I know that SaveSetting will create a value, but it won't create it in a
specified directory.
Thank You All So Much for any help you can provide, and I'm looking forward
to hearing from you. Thanks!
Jonathan
I've been reading this newsgroup for some time and have found all of you
very helpful and knowledgable. So, first and foremost, thank you for all your
help you've provided and don't even realize it! Secondly, here's my
question...
I haven't seen this addressed so maybe it's common knowledge, and I'm just a
moron, but here goes:
How do I add a key to the registry during runtime?
Here's the scenario:
The opens the program, it checks for a value in the registry. If the value
is not there, it prompts the user to register. After the user registers, I
need the program to store the created value in the appropriate key. That way,
the next time the program is run, the user will not be prompted for
registration again.
The key to be created is called "Auth" and it is in the following directory:
HKEY_LOCAL_MACHINE\Software\AppName
I know that SaveSetting will create a value, but it won't create it in a
specified directory.
Thank You All So Much for any help you can provide, and I'm looking forward
to hearing from you. Thanks!
Jonathan
