powershellsilent-installerstart-processmsp

msp file through powershell cmdlet


I am trying to silently install a windows fabric patch file (.msp) with powershell.

I tried this :

$argumentCU1 = "/i "+ '"' + $execCU1 +'"' + " /quiet"
Write-Host $argumentCU1
(Start-Process -FilePath msiexec.exe -ArgumentList $argumentCU1 -wait -verb runas).WaitForExit

where $execCU1 is the path to the file (UNC path) but it does not even launch.

Is it even possible to execute .msp through powershell? Is this cmd line correct?

thank you


Solution

  • Since the .msp files are patches for update i need to use "/update" and not "/i"

    because "/i" parameter is for installation (msi) and /update is for the msp files

    simple as that...