如何在VS2010中添加注册表资源 [英] How to add REGISTRY resource in VS2010

查看:110
本文介绍了如何在VS2010中添加注册表资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用VS2010.
我想添加一个注册表资源.它也会为此自动创建一个.rgs文件吗?

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?

推荐答案

注册表项和值可以通过导入注册表文件(.reg)添加到部署项目中.进入注册表编辑器.这使您可以通过一步来复制现有注册表的整个部分来节省时间.可以使用诸如MS
附带的注册表编辑器(regedit.exe)之类的工具来创建注册表文件. Windows

导入注册表文件:
*在注册表编辑器中选择目标计算机上的注册表"节点.
*在操作"菜单上,单击导入".
*在出现的导入注册表文件"对话框中,浏览到注册表文件,然后单击打开".

请参阅此处: http://msdn.microsoft.com/en-us/library/52tw02fh.aspx [^ ]

另请参见以下链接:
http://www.christec.co.nz/blog/archives/590 [ ^ ]
http://www.computing.net/answer/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 [
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[^]


下一次,请在发布问题之前先询问google. Thx
为ATL项目中的.rgs文件添加新的"REGISTRY"资源
Next time please ask google before posting a question . Thx
Adding new "REGISTRY" resource for .rgs file in ATL project


这篇关于如何在VS2010中添加注册表资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆