一台机器上只有.NET 4.0安装GitExtensions [英] Install GitExtensions on a machine with .NET 4.0 only

查看:354
本文介绍了一台机器上只有.NET 4.0安装GitExtensions的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.NET 4.0 / Visual Studio 2010的安装我的机器上。 当我执行当前的安装程序(GitExtensions224SetupComplete.msi)它告诉我,我需要安装.NET 3.5。
人们可以使用 GitExtensions 与.NET 4.0或者你必须安装.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?

感谢

推荐答案

据我可以从GitExtensions224SetupComplete.msi看到,它有一个明确的启动条件安装或NETFRAMEWORK35 。这就是为什么它不会让你继续而不.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:

  1. .NET 3.5是所必需的应用程序和/或安装到运行。在这种情况下,你没有选择,除了安装.NET 3.5
  2. 在.NET 3.5 prerequisite是一个遗留下来的。在这种情况下,你可以尝试欺骗:)

不要做这个关键ENV - 它只是为了好玩

NETFRAMEWORK35在情况下,注册表值安装等于 1 下的注册表项 SOFTWARE \微软\ NET Framework安装\新民主党\器v3.5 。添加的唯一值这个假的注册表项安装键,将其设置为 1 。然后运行安装程序。如果它成功 - 那么它是一个遗留下来的。否则,有一个真正依赖于.NET 3.5,你必须忍受这一点。

The property NETFRAMEWORK35 is set in case the registry value Install equals 1 under registry key SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5. Add this fake registry key with the only value Install and set it to 1. 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.

最后,去最容易,最安全的方法是安装.NET 3.5,这是肯定的。

Eventually, the easiest and safest way to go is to install .NET 3.5, that's for sure.

这篇关于一台机器上只有.NET 4.0安装GitExtensions的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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