Skip to content

hvandrie/msiCAFindRelatedProductsEx

Repository files navigation

Windows Installer natively evaluates ProductVersion as follows: major.minor.build

https://docs.microsoft.com/en-us/windows/win32/msi/productversion

Often software versions are formatted as: <Major.Minor.Revision.Build>

Which requires an need for 4th octet to be evaluated. msiCAFindRelatedProductsEx will handle 4 octets in similar manor as internal action FindRelatedProducts.

Instruction usage:

  1. Compile using Visual Studio and WiX Toolset v3.x.
  2. Import compiled msiCAFindRelatedProductsEx.CA.dll into Binary table of .msi and name it: msiCAFindRelatedProductsEx.dll
  3. Define CustomAction in CustomAction table as follows:

Action Type Source Target

FindRelatedProductsEx 1 msiCAFindRelatedProductsEx.dll FindRelatedProductsEx

  1. Schedule FindRelatedProductsEx CA in InstallExecuteSequence table right after FindRelatedProducts action

That's it. Use command line /lv* .log to find output and evaluation of ProductVersion Property and Upgrade table and it will populate matching ActionProperty properties defined in Upgrade table.

About

Windows Installer Custom Action which evaluates 4-digit / 4-octets of ProductVersion property string

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages