在仅具有 .NET 4.0 的计算机上安装 GitExtensions
我的计算机上安装了.NET 4.0 / Visual Studio 2010。 当我执行当前安装程序 (GitExtensions224SetupComplete.msi) 时,它告诉我需要安装 .NET 3.5。
可以在 .NET 4.0 中使用 GitExtensions 还是必须安装 .NET 3.5? 如果是,如何强制安装程序使用 .NET 4.0?
是否有一个通用的方法,它也适用于其他程序和安装程序?
谢谢
.NET 4.0 / Visual Studio 2010 is installed on my machine.
When I execute the current installer (GitExtensions224SetupComplete.msi) it tells me that I need to install .NET 3.5.
Can one use GitExtensions with .NET 4.0 or do you have to install .NET 3.5?
If yes, how do I force the installer to use .NET 4.0?
Is there a general approach to this, which also works with other programs and installers?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我从 GitExtensions224SetupComplete.msi 中看到,它有一个明确的启动条件
Installed OR NETFRAMEWORK35
。这就是为什么它不允许您在未安装 .NET 3.5 的情况下继续操作。这可能意味着三件事:
不要在关键环境中执行此操作 - 这只是为了好玩
如果注册表值
Install
等于 < code>1 位于注册表项SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5
下。使用唯一值Install
添加此假注册表项,并将其设置为1
。然后运行安装程序。如果它成功了——那么它就剩下了。否则,对 .NET 3.5 存在真正的依赖性,您必须忍受这一点。最终,最简单、最安全的方法是安装 .NET 3.5,这是肯定的。
As far as I can see from GitExtensions224SetupComplete.msi, it has an explicit launch condition
Installed OR NETFRAMEWORK35
. That's why it doesn't let you proceed without .NET 3.5 installed.This can mean 3 things:
DON'T DO THIS ON CRITICAL ENV - IT'S JUST FOR FUN
The property NETFRAMEWORK35 is set in case the registry value
Install
equals1
under registry keySOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5
. Add this fake registry key with the only valueInstall
and set it to1
. Then run the installer. In case it succeeds - then it's a left over. Otherwise, there's a real dependency to .NET 3.5 and you have to live with this.Eventually, the easiest and safest way to go is to install .NET 3.5, that's for sure.
对于基于 WiX 的安装程序来说,这似乎是一个普遍问题(就像许多开源程序一样)。实际上,您可能可以将它与 .Net 4 一起使用,但您不能强制安装程序识别它。换句话说,您(可能)可以从源代码编译并删除 .Net 3.5 版本检查,或者直接放弃并安装 .Net 3.5(最简单的方法)。 3.5 与 .Net 4 并行工作正常,并且可以在 .Net 4 之后安装。
这是根据经验,我遇到了完全相同的问题。
This seems to be a general problem for installers based on WiX (like a lot of Open Source programs are) In reality you could probably use it with .Net 4 but you can't force the installer to recognize it. In other words you can (probably) either compile from source and remove the .Net 3.5 version check or just give up and install .Net 3.5 (The easy way out). 3.5 works fine in parallel with .Net 4 and can be installed after .Net 4.
This is from experience, I've had the exact same problem.