Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Hi,
I am using VS2010.
I wanted to add a REGISTRY resource. It would create a .rgs file also automatically for that? Do we have to manualy add the entries in .rgs file?
Posted
Updated 27-Jul-12 3:47am
v2
Comments
Richard MacCutchan 26-Jul-12 11:42am    
What do you mean by REGISTRY resource? You can manipulate the registry quite simply from within your code just using strings and values.
Sergey Alexandrovich Kryukov 26-Jul-12 19:14pm    
...if you do not misspell in code, of course... :-)
--SA
SRKSHOME 27-Jul-12 3:47am    
In VS2010, resource editor we can add resources like String table,accelarator,Dialog etc. REGISTRY also one of the resource there.
Richard MacCutchan 27-Jul-12 4:54am    
I have just checked this link in MSDN and cannot see anything about registry resources. Can you point me to the documentation you are working from?

Registry keys and values can be added to a deployment project by importing a registry file (.reg) into the Registry Editor. This allows you to save time by copying an entire section of an existing registry in a single step. Registry files can be created using tools such as the registry editor (regedit.exe) included with MS
Windows

To import a registry file:
* Select the Registry on Target Machine node in the Registry Editor.
* On the Action menu, click Import.
* In the resulting Import Registry File dialog box, browse to a registry file, and then click Open.

See here : http://msdn.microsoft.com/en-us/library/52tw02fh.aspx[^]

See also the following links:
http://www.christec.co.nz/blog/archives/590[^]
http://www.computing.net/answers/programming/how-to-compile-a-reg-file-in-vc/10251.html[^]
http://support.microsoft.com/kb/220836[^]
http://stackoverflow.com/questions/11204413/ms-visual-studio-2010-com-automation-reg-file-used-by-setup-project[^]
http://stackoverflow.com/questions/11204413/ms-visual-studio-2010-com-automation-reg-file-used-by-setup-project[^]
 
Share this answer
 
Next time please ask google before posting a question . Thx
Adding new "REGISTRY" resource for .rgs file in ATL project
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900