Skip to main content
Version: v3

Restrictions for Patches

There are different restrictions for patches based on what type of patch is to be installed. There are three types of patches:

  • Small updates do not change the ProductVersion property of a target product and typically represent a small subset of files to be updated.
  • Minor upgrades do change the ProductVersion property of a target product and typically represent a larger subset of files to be updated. Minor upgrades might also be installed as upgrade MSIs.
  • Major upgrades change both the ProductVersion and ProductCode and contain all files in a product. Shipping major upgrades as a patch is, however, not recommended and WiX does not support building major upgrade patches because of the problems they create.

For information about restrictions for each type of patch, read Changing the Product Code.

Uninstallable Patches

For a patch to be uninstallable, the MsiPatchMetadata table must exist in the patch package and must contain the AllowRemoval property set to 1. This can be authored into the Patch Creation Properties file using the PatchMetadata/@AllowRemoval attribute or into the patch XML file using the Patch/@AllowRemoval attribute.

Beside that, certain tables cannot be modified in the upgrade package from which a patch is built. Read Uninstallable Patches for the current list of tables. Pyro.exe will error if one of these tables would be modified when building a patch XML file.

The following table lists tables and corresponding elements or attributes in WiX.

Table

Element or Attribute

BindImage

[File](/docs/v3/xsd/wix/file)/@BindPath

Class

[Class](/docs/v3/xsd/wix/class)

Complus

[Component](/docs/v3/xsd/wix/component)/@ComPlusFlags

CreateFolder

[CreateFolder](/docs/v3/xsd/wix/createfolder)

DuplicateFile

[CopyFile](/docs/v3/xsd/wix/copyfile)

Environment

[Environment](/docs/v3/xsd/wix/environment)

Extension

[Extension](/docs/v3/xsd/wix/extension)

Font

[File](/docs/v3/xsd/wix/file)/@FontTitle

IniFile

[IniFile](/docs/v3/xsd/wix/inifile)

IsolatedComponent

[IsolatedComponent](/docs/v3/xsd/wix/isolatecomponent)

LockPermissions

[Permission](/docs/v3/xsd/wix/permission)

MIME

[MIME](/docs/v3/xsd/wix/mime)

MoveFile

[CopyFile](/docs/v3/xsd/wix/copyfile)

ODBCAttribute

[ODBCDriver](/docs/v3/xsd/wix/odbcdriver)/[Property](/docs/v3/xsd/wix/property)

ODBCDataSource

[ODBCDataSource](/docs/v3/xsd/wix/odbcdatasource)

ODBCDriver

[ODBCDriver](/docs/v3/xsd/wix/odbcdriver)

ODBCSourceAttribute

[ODBCDataSource](/docs/v3/xsd/wix/odbcdatasource)/[Property](/docs/v3/xsd/wix/property)

ODBCTranslator

[ODBCTranslator](/docs/v3/xsd/wix/odbctranslator)

ProgId

[ProgId](/docs/v3/xsd/wix/progid)

PublishComponent

[Category](/docs/v3/xsd/wix/category)

RemoveIniFile

[IniFile](/docs/v3/xsd/wix/inifile)

SelfReg

[File](/docs/v3/xsd/wix/file)/@SelfRegCost

ServiceControl

[ServiceControl](/docs/v3/xsd/wix/servicecontrol)

ServiceInstall

[ServiceInstall](/docs/v3/xsd/wix/serviceinstall)

TypeLib

[TypeLib](/docs/v3/xsd/wix/typelib)

Verb

[Verb](/docs/v3/xsd/wix/verb)

Major upgrade patches are not uninstallable.