简体   繁体   中英

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.

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. Is there a way to force the web installer, or cause add a feature to activate quietly?

Have you tried the dism tool?

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. This is what I use when including .NET in any of my packages and it works like a charm.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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