According to Microsoft if you’re installing a patch silently, you must also set the REINSTALLMODE property to ecmus and REINSTALL to ALL. Otherwise, the patch only updates the MSI cached on the target device.
Our application vendor states the following string must be used.
msiexec.exe /p “<Full path to .msp>” REINSTALL=ALL REINSTALLMODE=omus /qn
I have looked into the code and cannot find where this is being done or can be done for that matter.
Nor does the installation string in the log reflect these parameters being added.
Is this something that could be added? Perhaps add a new default parameters configuration item for when executing a patch?
Have you tried using the PSADT-provided command Execute-MSI with the parameter -AddParameters ?
The default params are “REBOOT=ReallySuppress /QB!”. If you need different params use -AddParameters to add the additional params, or modify the default params by editing AppDeployToolkitMain.ps1
I am unable to find much of a difference between /p and /update. They both modify the PATCH property. It would seem they are the equivalent like /x is to /uninstall
As stated, Execute-MSP does not have an -AddParmeters parameter and it essentially calls Execute-MSI -Patch.
I thought it would be handy to have a $configMSIPatchParams variable per se loaded from AppDeployToolkitConfig.xml where default PATCH properties can be set.
I dont see an issue with adding -AddParameters for Execute-MSP and I also dont see an issue with adding the variables but both need to be tested. The function already uses default config MSI parameters.
Could not get a patch applied to some package called “Dell SupportAssist”. It only accepted “msiexec /p SupportAssistx64-3.10.4.18.msp /qn REBOOT=ReallySuppress /norestart”.
Using process explorer and procomon i found out execute-msi -Action ‘Patch and execute-msp in PSADT will always try using the /update switch and /Qb! instead of /Qn. Running the patch manually it said that it must be running using /qn.
Got around it using: Execute-Process -Parameters “/p SupportAssistx64-3.10.4.18.msp /qn REBOOT=ReallySuppress /norestart” -Path “msiexec.exe” -WorkingDirectory “$dirFiles”