问题描述
我尝试在PC上安装 Visual C#2010 Express版,但是每当我尝试运行它时,我都会收到一条错误消息.
I've tried to install Visual C# 2010 Express edition onto my PC, but whenever I try to run it, I get a error message.
我已经尝试过重新安装它,消息仍然存在.
I've already tried reinstalling it, and the message persists.
OS是Vista Home Premium.我已经安装了VC# 2008 Express
.
OS is Vista Home Premium. I already have VC# 2008 Express
installed.
推荐答案
这在Vista上对我有用.它基于MS上的变通方法: http://connect.microsoft.com/VisualStudio/feedback/details/520110/invalid-license-data-reinstall-is-required
This worked for me on Vista. It's based on work-around at MS: http://connect.microsoft.com/VisualStudio/feedback/details/520110/invalid-license-data-reinstall-is-required
-
下载subinacl命令行工具
http://www .microsoft.com/downloads/en/confirmation.aspx?FamilyID = e8ba3e56-d8fe-4a91-93cf-ed6985e3927b& displaylang = en
Download subinacl command line tool
http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en
运行以下命令:subinacl /subkeyreg HKEY_CLASSES_ROOT\Licenses /setowner=everyone
subinacl /subkeyreg HKEY_CLASSES_ROOT\Licenses /grant=everyone=f
Run these commands:subinacl /subkeyreg HKEY_CLASSES_ROOT\Licenses /setowner=everyone
subinacl /subkeyreg HKEY_CLASSES_ROOT\Licenses /grant=everyone=f
再次启动VS 2010 Express,这一次它要求提供许可证密钥.
Start VS 2010 Express again and this time it asks for a license key.
(在Windows 7 Home上,我必须两次运行上述命令才能正常工作)
(On Windows 7 Home I had to run the above commands twice before they worked correctly)
这篇关于如何修复“无效的许可证数据".需要重新安装." C#2010 Express中出现错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!