Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add key to registry (in a simple way)

Status
Not open for further replies.

domenu

Programmer
May 31, 2002
30
BE
Hi,

does anybody know how to add a key in the registry in a simple way...(maybe without the API ???) ???

I only need to add 1 key, in the run-section of the reg, to start my application automatically with windows...

I don't want the loads of lines to add an key to "overload" my code, so I wondered if there is a much simple way to do this.

THANKS

---->>> nick
 
Create a .reg file to add the information that you need when you install your app and you may not need any code at all. Open notepad and write something like I have below.

REGEDIT4

[HKEY_CURRENT_USER\Software\VB and VBA Program Settings\...]
"String Key"="value"

Save the file as ?.reg

Include it in your list of files in the P&D wizard. You will have to add the file manually. Answer yes when you are asked if you want to update the registry. Thanks and Good Luck!

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top