1

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

4
  • 1
    MSP is just a transform file that usually accompanies and MSI file. msiexec.exe /i "pathto .msi file" /p "pathto .msp file" Commented Jul 16, 2015 at 13:57
  • So i have to install the msi with his update in the same command? Commented Jul 16, 2015 at 14:01
  • Found my error thanks for the informations Commented Jul 16, 2015 at 14:09
  • I said usually. Sorry if my comment was misleading... You found the right answer. Commented Jul 16, 2015 at 14:10

1 Answer 1

3

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...

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.