.NET Framework 4 installation in silent mode [closed]
Asked Answered
G

2

21

Can anyone explain how to make silent (without any user interface) install of .NET 4? It looks like .NET installer ignores any switches from this article and show interface always. .NET Framework 4 installer is packed by NSIS.

Godly answered 16/12, 2011 at 12:2 Comment(1)
To me the questions fits the topic. From stackoverflow.com/help/on-topic : it is about "* software tools commonly used by programmers; and is * a practical, answerable problem that is unique to software development". It does not match any of the 6 exclusion cases. One might argue it's more a matter of deploying rather than programming. When some StackExchange site is devoted to deployment we'll move the question. Until then I claim it fits the topic.Blast
I
34
dotnetfx40x86.exe /q

should do the trick.

.NET Framework Deployment Guide for Developers

Inorganic answered 16/12, 2011 at 12:5 Comment(4)
Can I use this command in NSIS script?Godly
Thanks. It's work ExecWait "$INSTDIR\dotNet.exe /passive"Godly
Wow, /q is so quiet that I thought it did not even work. Really nothing visible happens and the command prompt goes back immediately. If you run the installer again quickly without /q, it complains one installer is already running, as task manager confirms. Very useful link in answer.Blast
There is a security warning dialog that I can not prevent it. How to suppress it? I'm calling .NET 4.6.1 installer from another older C# app that is running as administrator.Mande
G
5

It may not be picking up your locale, try:

dotNetFx40_Full_setup.exe /q /norestart /LCID xxxx

But as Mr. Piras says, look at the MS guide

Gunnar answered 16/12, 2011 at 12:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.