DISM Application Servicing (.msp) Command-Line Options

Application servicing command-line options can be used on an offline image to check the applicability of Windows Installer application patches (.msp files) and to query your offline image for information about installed Windows Installer applications and application patches (.msp files).

For information about using Deployment Image Servicing and Management (DISM) with app packages, see DISM App Package (.appx or .appxbundle) Servicing Command-Line Options.

The base syntax for servicing a Windows image using DISM is:

DISM.exe /Image:<path_to_image_directory> [dism\global_options] {servicing_option} [<servicing_argument>]

The following servicing options are available to list Windows Installer applications and .msp application patches, and to check the applicability of an application patch for an offline Windows image:

DISM.exe /Image:<path_to_directory> [/Check-AppPatch | /Get-AppPatchInfo: | /Get-AppPatches | /Get-AppInfo | /Get-Apps]

This section describes how you can use each application servicing option.

/Get-Help /?

When used immediately after a package servicing command-line option, information about the option and the arguments is displayed. Additional topics might become available when an image is specified.

Example:

Dism /image:C:\test\offline /Check-AppPatch /?

/Check-AppPatch

Displays information only if the MSP patches apply to the offline image. The path to the MSP patch file must be specified. Multiple patch files can be specified.

Syntax:

/Check-AppPatch /PatchLocation:<path_to_patch.msp>

Example:

Dism /image:C:\test\offline /Check-AppPatch /PatchLocation:C:\test\MSIPatches\MsiTestPatch1.msp /PatchLocation:C:\test\MSIPatches\MsiTestPatch2.msp

/Get-AppPatchInfo

Displays detailed information about installed MSP patches filtered by <patch_code_GUID> and <product_code_GUID>.

Syntax:

/Get-AppPatchInfo: [/PatchCode:<patch_code_GUID>] [/ProductCode:<product_code_GUID>]
  • If the PatchCode option is specified, detailed information is displayed for all Windows Installer applications that the patch is applied to.

  • If the ProductCode option is specified, information about all MSP patches in the specified application is displayed.

  • If the PatchCode and ProductCode options are specified, information is displayed only if that specific patch is applied to the specified Windows Installer application.

  • Use the Get-AppPatches option to find the patch code GUID and the product code GUID specific to the patch. Use the Get-Apps option to list all product code GUIDs for an installed Windows Installer applications.

  • If PatchCode and ProductCode are not specified, all installed Windows Installer packages and MSP patches are displayed.

Examples:

Dism /image:C:\test\offline /Get-AppPatchInfo
Dism /image:C:\test\offline /Get-AppPatchInfo: /PatchCode:{B0B9997C-GUID-GUID-GUID-74D866BBDFFF}
Dism /image:C:\test\offline /Get-AppPatchInfo: /ProductCode:{B0F9497C-GUID-GUID-GUID-74D866BBDF59}
Dism /image:C:\test\offline /Get-AppPatchInfo: /PatchCode:{B0B9997C-GUID-GUID-GUID-74D866BBDFFF} /ProductCode:{B0F9497C-GUID-GUID-GUID-74D866BBDF59}

/Get-AppPatches

Displays basic information about all applied MSP patches for all applications installed on the offline image. If a product code GUID is specified, information is displayed about all patches in the specified Windows Installer application.

Syntax:

/Get-AppPatches: [/ProductCode:<product_code_GUID>]

Examples:

Dism /image:C:\test\offline /Get-AppPatches
Dism /image:C:\test\offline /Get-AppPatches /ProductCode:{B0F9497C-GUID-GUID-GUID-74D866BBDF59}

/Get-AppInfo

Displays detailed information about a specific installed Windows Installer application.

Syntax:

/Get-AppInfo [/ProductCode<product_code_GUID>]

Use the /Get-Apps option to find the GUID for an installed Windows Installer application. If a product code GUID is not specified, information is displayed for all Windows Installer applications installed in the offline image.

Examples:

Dism /image:C:\test\offline /Get-AppInfo
Dism /image:C:\test\offline /Get-AppInfo /ProductCode:{B0F9497C-GUID-GUID-GUID-74D866BBDF59}

/Get-Apps

Displays basic information about all Windows Installer applications in the offline image.

Example:

Dism /image:C:\test\offline /Get-Apps

Limitations

/Get-AppPatches and /Get-AppPatchInfo apply only to installed patches (.msp files).

When you determine the applicability of an MSP patch, only the Windows Installer applications for which the patch is applicable will be displayed. One patch can apply to many installed applications and many patches can apply to one application.

What is DISM?

DISM Image Management Command-Line Options

Deployment Image Servicing and Management (DISM) Command-Line Options

DISM App Package (.appx or .appxbundle) Servicing Command-Line Options