Visual Studio安装项目无法向注册表添加键 [英] Visual Studio Setup Project failing to add keys to registry

查看:916
本文介绍了Visual Studio安装项目无法向注册表添加键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2008中创建一个设置pacakage注册一个COM组件,其中的一个操作是添加几个键到注册表。



奇怪的是,当我运行安装程序,它正确创建密钥层次结构,但它创建的层次结构中的最后一个键有错误的GUID ...而它的权利在安装程序...有任何人进入这个或有任何建议



感谢

解决方案

相同(或类似?)问题,我的解决方案在这里:如何注册COM从VS安装项目?



基本上我刚刚手动创建注册表项,并将它们作为.reg文件添加到安装项目:)


I'm creating a setup pacakage in Visual Studio 2008 to register a COM component and one of the actions is to add a few keys to the registry.

The odd thing about it is when I run the installer it creates the key hierarchy correctly but the last key in the hierarchy it creates has the wrong GUID... whereas its right in the installer... has anyone run into this or have any suggestions on what is going wrong?

Thanks

解决方案

I had the same (or a similar?) problem, my solution is here: How to register COM from VS Setup project?

Basically I just created the registry keys manually and added them to the setup project as a .reg file :)

这篇关于Visual Studio安装项目无法向注册表添加键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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