简体   繁体   English

如何在Windows 8.1上安装.NET 4.0应用程序?

[英]How to install .NET 4.0 app on Windows 8.1?

I have a .NET 4.0 Winforms application that I'm trying to install on Windows 8.1 under InstallShield. 我有一个.NET 4.0 Winforms应用程序,我试图在Windows 8.1的InstallShield下进行安装。 When the files are being copied, there are many Windows popups with the message: 复制文件时,有许多Windows弹出窗口,显示以下消息:

An App on your PC needs the following Windows Feature:
.NET Framework 3.5 (includes .NET 2.0 and 3.0)

What generates this message, and how can I eliminate it? 产生此消息的原因是什么,如何消除?

I'm pretty sure that all my app executable and assemblies are set for 4.0 based on the "References" and project properties. 我很确定我所有的应用程序可执行文件和程序集都基于“参考”和项目属性设置为4.0。

I want to have the installation continue without a needless .NET 3.5 install since it's not needed; 我想要继续安装而无需安装不必要的.NET 3.5,因为这是不需要的。 if I choose "Skip this installation", the application runs properly. 如果我选择“跳过此安装”,则该应用程序将正常运行。 Even if I were to preemptively install .NET 3.5 by using DISM, it will require the user to locate the Windows 8 install CD to enable the feature. 即使我要使用DISM抢先安装.NET 3.5,它也将要求用户找到Windows 8安装CD才能启用该功能。

It turned out that several InstallShield components that contained .NET programs or assemblies had their InstallShield component ".NET Settings" set to "Local assembly", which triggered the Windows 8 Feature On Demand . 原来,几个包含.NET程序或程序集的InstallShield组件将其InstallShield组件“ .NET Settings”设置为“本地程序集”,从而触发了Windows 8 Feature On Demand Since the components didn't need to be available outside of this installation, the solution was to set them to "Not a .NET assembly". 由于不需要在安装之外使用这些组件,因此解决方案是将它们设置为“不是.NET程序集”。

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

相关问题 如何在Windows 8上安装/重新安装.net 4.0 - how to install/reinstall .net 4.0 on windows 8 在Windows 8.1上构建的.NET 4.0程序集不适用于较低的Windows版本 - .NET 4.0 assembly built on windows 8.1 does not work on lower windows versions 如何安装支持.net Framework 4.0的Fluorfx? - How to install fluorinefx with support for .net framework 4.0? 如何同时安装.Net 3.5和4.0? - How to install .Net 3.5 and 4.0 together? 如何安装.NET Framework 4.0作为安装的一部分? - How to install .NET framework 4.0 as part of installation? 如何仅安装 .NET 框架 4.0 - How to install .NET framework 4.0 only 如果我在Windows 7上安装.NET 4.0 Full,是否需要.NET 4.0 Client Framework? - Do I need the .NET 4.0 Client Framework if I install .NET 4.0 Full on Windows 7? 如何在Windows Phone 8.1中测试“App Update”? - How to test “App Update” in Windows Phone 8.1? 在Windows 8.1中仅在Visual Studio 2012中不显示.Net Framework 3.0、3.5、2.0 - .Net framework 3.0, 3.5 , 2.0 not showing in Visual studio 2012 only 4.0 and 4.5 in windows 8.1 如何为Windows Phone 8.1 App创建System.Net.Sockets.Socket实例 - How to create a System.Net.Sockets.Socket instance for Windows Phone 8.1 App
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM