Applying Patches on MSIs
I was asked a quick question today around applying MSP patch files to a regular MSI installation. My customer had created a batch file in some cases and also two separate applications which were queued up with dependencies.
The correct and cleaner way to do this in my opinion is to use the PATCH property in MSIExec, as follows:
msiexec.exe /i <path_to_msi>.msi PATCH=<path_to_msp>.msp /qb!
You can also do the following to apply multiple patches:
msiexec.exe /i <path_to_msi>.msi PATCH=<path_to_msp>.msp;<path_to_msp2>.msp;<path_to_msp3>.msp /qb!
You must provide the path to the MSP patch, you cannot simply leave it without a directory, don’t forget to use %cd% for the working directory which will also work.