简体   繁体   English

如何作为安装程序的一部分在Win8上静默安装.Net3.5?

[英]How do I install .Net3.5 on Win8 quietly as part of an installer?

Pretty much as the title. 和标题差不多。 I'm using WiX to create an installer and need to include .Net 3.5 web installer as a payload. 我正在使用WiX创建安装程序,并且需要包括.Net 3.5 Web安装程序作为有效负载。

I've got it working on Win7 and Vista using /q, but on Win8 the 'Add a Feature' functionality seems to override the web installer. 我已经使用/ q在Win7和Vista上运行了它,但是在Win8上,“添加功能”功能似乎覆盖了Web安装程序。 Is there a way to force the web installer, or cause add a feature to activate quietly? 有没有办法强制Web安装程序,或使添加功能安静地激活?

Have you tried the dism tool? 您是否尝试过dism工具?

Something like 就像是

dism /online /enable-feature /featurename:NetFx3 /quiet /norestart

might work. 可能有用。

in your InstallCommand attribute, "/passive /norestart" should force the .NET installer to run quietly and as part of your WiX installer without restarting. 在您的InstallCommand属性中, "/passive /norestart"应强制.NET安装程序以静默方式运行,并且作为WiX安装程序的一部分而无需重新启动。 This is what I use when including .NET in any of my packages and it works like a charm. 这就是我在任何程序包中包含.NET时所使用的功能,它的工作原理很吸引人。

Hope this helps. 希望这可以帮助。

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

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