Visual Studio注册表捕获实用程序遇到问题 [英] Visual Studio registry capture utility has encountered a problem
问题描述
我最近重新安装了开发机器,并从32位Windows Vista迁移到了64位Windows7.我正在运行VS2008.
I recently reinstalled my development machine and went from 32 bit Windows Vista to 64 bit Windows 7. I'm running VS2008.
我的某些.NET应用程序仍然使用J#,这现在会引起问题.该程序仍在运行,但是当我要部署它时(我正在使用安装项目来创建.msi),出现此错误:
Some of my .NET applications still use J#, which now causes problems. The program still runs, but when I want to deploy it (I'm using a setup project to create a .msi), I get this error:
"Visual Studio注册表捕获实用程序遇到问题"
"Visual Studio registry capture utility has encountered a problem"
我该如何解决? 其他程序(纯C#编写)不会发生此错误.
How can I fix this? This error does not occur with other programs (those written purely in C#).
推荐答案
是的,这是Win7和VS2008在创建公开COM对象的安装程序时的已知错误.
Yes, this is a known bug with Win7 and VS2008, in creating an installer that exposes COM objects.
感谢@RogerFraser给我小费,因为我遇到了同样的问题
Thanks @RogerFraser for the tip as I was having the same problem
解决.
- 在此处找到regcap.exe: C:\ Program Files \ Microsoft Visual Studio 9.0 \ Common7 \ Tools \ Deployment
- 右键单击并选择属性.
- 选择兼容性"标签
- 复选框,以在兼容模式下运行此程序.
- 在操作系统"下拉列表中选择Windows Vista SP2.
- 单击确定并重新编译".
- Locate regcap.exe here: C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\Deployment
- Right click and select properties.
- Select Compatibility tab
- Check box to Run this program in compatibility mode.
- Select Windows Vista SP2 in the OS drop-down.
- Click Ok and Recompile.
HTH.
这篇关于Visual Studio注册表捕获实用程序遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!