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.

Advertisements

Tags: , , ,

About Martyn

Martyn is one of the Senior Cloud Architects and DevOps Team Leader at one of the worlds leading Cloud Transformation Specialists Inframon. Martyn is responsible for the architecture of some of the largest Azure deployments in EMEA and is a advisor to a many businesses on their strategies. Martyn is a regular speaker at Microsoft events and community events on Azure and DevOps, giving his insight to a growing number of audiences.

One response to “Applying Patches on MSIs”

  1. brianfgonzalez says :

    FYI, this is used frequently with Adobe Reader. The .MSPs can be grabbed from their FTP: ftp://ftp.adobe.com/pub/adobe/reader/win/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: