如何在Windows安装程序中包含.net framework 3.5以在Windows 8上运行应用程序

问题描述:

你好

我有一个应用程序在Windows 8以外的其他Windows版本上运行正常。在Windows 8上我收到错误.net framework 3.5未安装。因为它在我的Windows安装程序的先决条件列表中。因此,当我选中复选框时,它将开始安装,但之后它的抛出错误所以我想知道为Windows 8设置的.net框架的源是否与其他不同?或者我应该怎么做才能在安装程序中包含正确的设置,包括Windows 8在内的每个版本都能正常工作。

Hello
I have one application which runs fine on other windows version except Windows 8. On windows 8 I am getting error for .net framework 3.5 not installed. As It is in prerequisite list in my windows installer . So when I select check box, It will start installing but then its throwing error So I want to know whether the source of .net framework set up for windows 8 is different then other? Or What should I do to include correct setup in installer which works fine on every version including windows 8.

为什么?此版本的Windows随.NET 4.5一起提供。要启用其他版本的兼容性,请阅读:

http://windows.microsoft.com/en-us/windows-8/net-framework-windows-8 [ ^ ],

http://msdn.microsoft.com/en-us/library/hh506443%28v=vs.110%29。 aspx [ ^ ],

http://support.microsoft.com/kb/2785188 [ ^ ]。



如何在安装程序中执行此操作取决于您使用的安装工具包。例如,您可以在自定义安装操作中使用DISM:

http://msdn.microsoft.com/en-us/library/windows/desktop/dd371719%28v=vs.85%29.aspx [ ^ ] ,

http:/ /*.com/questions/12897326/redistributable-offline-net-framework-3-5-installer-for-windows-8 [ ^ ]。



-SA
Why? This version of windows comes with .NET 4.5. To enable some other versions for compatibility, please read this:
http://windows.microsoft.com/en-us/windows-8/net-framework-windows-8[^],
http://msdn.microsoft.com/en-us/library/hh506443%28v=vs.110%29.aspx[^],
http://support.microsoft.com/kb/2785188[^].

How to do it in your installer, depends on the installation toolkit you use. For example, you can use DISM in a custom installation action:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd371719%28v=vs.85%29.aspx[^],
http://*.com/questions/12897326/redistributable-offline-net-framework-3-5-installer-for-windows-8[^].

—SA


参考:

在Windows 8或8.1上安装.NET Framework 3.5 [ ^ ]

[修复]在Windows 8 / 8.1中安装.NET Framework 3.5时出现0x800F0906和0x800F081F错误消息 [ ^ ]
refer :
Installing the .NET Framework 3.5 on Windows 8 or 8.1[^]
[Fix] 0x800F0906 and 0x800F081F Error Messages While Installing .NET Framework 3.5 in Windows 8/8.1[^]