EXE installation arguments


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”



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.


Other example:

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