[英]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下,此安装程序会提示用户是否真的要安装正在尝试运行的软件所需的此功能(您知道,以防万一他想安装软件来使用一些磁盘空间):
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.