September 13th, 2007

Transform Validation in WiX Patch Build

Heath Stewart
Principal Software Engineer

In the latest WiX v3 drops a new element is supported to configure transform validation bits. The default is still 0x0922001f but you can now configure them. Torch.exe was also modified to accept transform validation bits using the same flags as msitran.exe in the Windows Installer SDK, as well as transform types that group together common flags. Currently, you can easily build language, instance, and patch transforms using torch.exe -t <type>.

To use the new element, add the <Validate/> element under <PatchBaseline/>. The default value of 0x0922001f is equivalent to the following:

<Validate IgnoreAddExistingRow="yes" IgnoreAddExistingTable="yes" IgnoreDeleteMissingRow="yes" IgnoreDeleteMissingTable="yes" IgnoreUpdateMissingRow="yes" ProductId="yes" ProductVersion="Update" ProductVersionOperator="Equal" UpgradeCode="yes" />

Author

Heath Stewart
Principal Software Engineer

Heath is an application architect and developer, looking to help educate others to learn professional development. Besides designing and developing applications he enjoys writing about intermediate and advanced topics. Heath also consults for deployment packages and scenarios within Microsoft and for external customers.

0 comments

Discussion are closed.