Example command lines for installing a .msp (patch) file in Run Script or Software Delivery tasks
search cancel

Example command lines for installing a .msp (patch) file in Run Script or Software Delivery tasks

book

Article ID: 180900

calendar_today

Updated On: 03-13-2025

Products

Software Management Solution

Issue/Introduction

Is it possible to run a .MSP patch file through a command line so the patch can be pushed out with Software Delivery or a "Run Script" job?

Environment

ITMS 8.x

Resolution

Yes, you should be able to run the MSP from the command line and even pass it the /qb switch without it failing.  The correct command line can contain the MSI file as well, although it's optional.  See the following examples:

msiexec /p msipatch.msp /qb

msiexec /i A:\Example.msi PATCH=msipatch.msp;msipatch2.msp /qb

msiexec /update msipatch.msp /qb

Note: if Windows does not have the MSI package already installed, then the update can fail if it doesn't include the MSI file.