EXE installation arguments

Hello

i need to install windows .NET using an exe (NDP472-KB4054530-x86-x64-AllOS-ENU)

would the correct arguments to suppress all prompts be Arguments = “/passive”

 

thanks

No, MSI, exe, is provide by those installers not by PS. So, you have to use their switches in the argumentlist of an install either directly or using Start-Process SomeCommandExe - ArgumentList ListNeeded. Most msi, exe have a /? switch that will show all options.

https://blogs.msdn.microsoft.com/astebner/2010/05/12/silent-install-repair-and-uninstall-command-lines-for-the-net-framework-4

Other example:

Start-Process -FilePath "C:\temp\dotnetfx45_full_x86_x64.exe" -ArgumentList "/q /norestart" -Wait