简体   繁体   English

尽管已安装.NET 4.5,但由于缺少.NET 3.5,MSI无法安装

[英]MSI fails to install because of missing .NET 3.5 although .NET 4.5 is installed

I have a problem with msi installer made with WiX. 我用WiX制作的msi安装程序有问题。 It works on Win 7, but when I run it on Windows Server 2012 R2 it fails. 它可以在Win 7上运行,但是当我在Windows Server 2012 R2上运行它时会失败。 It tries to install .NET framework 3.5 which you can't do that easily on Windows Server. 它尝试安装.NET Framework 3.5,而在Windows Server上您很难做到这一点。 The thing I don't understand is that .NET 4.5 framework is already installed on this machine. 我不明白的是,这台计算机上已经安装了.NET 4.5框架。

Windows功能-无法安装以下功能

Why does my wix installer look for .NET 3.5? 为什么我的wix安装程序会寻找.NET 3.5?

Is there a way how to disable it? 有没有办法禁用它?

Thank you. 谢谢。

Update: So I found the problem. 更新:所以我发现了问题。 One of components used in the installation was taken from an older source and this file wasn't compatible with .Net 4.0 and higher. 安装中使用的组件之一来自较旧的来源,并且此文件与.Net 4.0及更高版本不兼容。 Thank you all who tried to help. 谢谢所有尝试提供帮助的人。

Do you need both .net 3.5 and 4.0 installed or just .net 4? 您需要同时安装.net 3.5和4.0还是仅.net 4?

Not exactly what you're looking for, but it says that sometimes .net 3.5 is not fully replaced by .net 4.0 and higher. 并非完全符合您的要求,但它表示有时.net 3.5不能完全被.net 4.0及更高版本取代。 So you also need .net 3.5 因此,您还需要.net 3.5

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM