简体   繁体   English

在Windows 8下强制安装.Net Framework 3.5

[英]Force installation of .Net Framework 3.5 under Windows 8

We have an application that runs under .Net 3.5, and customers (it's freely available on our website) can download it. 我们有一个在.Net 3.5下运行的应用程序,客户(可以在我们的网站上免费获得)可以下载它。

In the installer, we check if the registry key "HKLM\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v3.5" exists, and if it doesn't, we install "DotNetFx35ClientSetup.exe /qb /norestart". 在安装程序中,我们检查注册表项“ HKLM \\ SOFTWARE \\ Microsoft \\ NET Framework Setup \\ NDP \\ v3.5”是否存在,如果不存在,则安装“ DotNetFx35ClientSetup.exe / qb / norestart”。

Under Windows 8, this installer prompts the user to know if he REALLY wants to install this feature that is needed by the software he's trying to run (you, know, just in case he wants to install software just to use some disk space) : 在Windows 8下,此安装程序会提示用户是否真的要安装正在尝试运行的软件所需的此功能(您知道,以防万一他想安装软件来使用一些磁盘空间):

.net 3.5提示

Obviously, as any of you who has worked with end user knows, when they see a popup, many of them reflex-click on anything that looks like "no" or "cancel", so the software doesn't work and they complain. 显然,正如您与最终用户一起工作的任何人所知道的那样,当他们看到弹出窗口时,他们中的许多人会反射单击任何看起来像“否”或“取消”的内容,因此该软件无法正常工作并且会抱怨。

Do you know of any way to force the installation of .Net 3.5 under Windows 8, without prompting the user for this ? 您是否知道有任何方法可以在Windows 8下强制安装.Net 3.5,而不提示用户这样做?

You can't use the DotNetFx35ClientSetup.exe in Windows 8. In Windows 8 run this command to install .Net 3.5 您不能在Windows 8中使用DotNetFx35ClientSetup.exe 。在Windows 8中,运行此命令以安装.Net 3.5

DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs

D:\\ is here the DVD drive with the Windows 8 DVD/ mounted ISO. D:\\是具有Windows 8 DVD / ISO的DVD驱动器。

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

相关问题 将现有Windows应用程序升级到.net 3.5框架 - Upgrading existing windows applicatioon to .net 3.5 framework .NET Framework 3.5与.NET 4.0的并排执行 - Side by Side Execution under .NET Framework 3.5 with .NET 4.0 Inno安装程序:需要用于Windows Server 2012 R2的.Net Framework 3.5 SP1独立安装程序(无Internet,无DVD安装介质) - Inno Setup: Need a standalone Installer for .Net Framework 3.5 SP1 for Windows Server 2012 R2 (no Internet and no DVD Installation Media) 如何强制IE使用.net Framework 3.5加载网站? - How do I force IE to load site with .net framework 3.5? 在Windows 7下如何“安装” /“启用” .Net 3.5 SP1? - How to “Install”/“Enable” .Net 3.5 SP1 under Windows 7? Windows 8上的InstallShield .NET 4.6.1 Framework安装 - InstallShield .NET 4.6.1 Framework installation on Windows 8 为什么monodevelop需要.NET 3.5框架才能在Windows上运行? - why does monodevelop need the .NET 3.5 framework to run on windows? 通过Windows Server 2008安装.NET 3.5框架时出错 - Error when installing .NET 3.5 framework over Windows Server 2008 将.Net 3.5 Compact Framework应用程序迁移到Windows 10 Mobile - Migrating .Net 3.5 Compact Framework app to Windows 10 Mobile 使用Microsoft说明在Windows 10上安装.Net Framework 3.5 - Install .Net Framework 3.5 on Windows 10 using Microsoft Instructions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM