Forum Discussion
UmeshVangapalli
Mar 28, 2023Copper Contributor
Powershell Script when installing MSI and MSP together
Hi, I'm doing an Intune packaging where I have below PowerShell Script when installing MSI and MSP together, however, it installs only msi wondering if something is wrong why MSP is not installing. ...
Varun_Ghildiyal
Mar 28, 2023Brass Contributor
It looks like there might be a typo in the script. In the line where you're trying to install the MSP file, you have the variable $file instead of $PSScriptRoot.
Try changing this line:
Start-Process $file -Wait -ArgumentList $patchArg
to
Start-Process "msiexec.exe" -Wait -ArgumentList $patchArg
Try changing this line:
Start-Process $file -Wait -ArgumentList $patchArg
to
Start-Process "msiexec.exe" -Wait -ArgumentList $patchArg