Product version displayed in .msi files of a WIX file?

How to display the product version in the properties of the MSI file (as shown in Windows Explorer)?

Our installer is created using WIX. All we see is the product GUID, displayed as the version number on the Details tab of the MSI file properties.

We would like to have a product version (for example, 5.0.1.12345) so that the support team (and customers) can easily check the version of this file.

+6
source share
2 answers

I don’t think you can really install the version of the file in MSI files on WIX. We do what we edit the package description property.

<Package InstallerVersion="200" Description="Version: !(bind.FileVersion.filD6DA798364FCF1273EEE80AEF914C743)" InstallScope="perMachine" ... 

And then we also make sure that the product is using the same version:

 <Product Id="*" Name="Name" Language="1033" Version="!(bind.FileVersion.filD6DA798364FCF1273EEE80AEF914C743)" ... 

The description is displayed in your MSI file properties, so the version will be visible in the description. Hope this is what you want!

+6
source

Just add the Comments attribute to the package tag as shown below.

 <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Comments="Version: 5.0.1.12345" /> 

There is no version property. Therefore, as an alternative, we add it to the comments attribute. Thus, this can be seen in the msi properties.

+5
source

Source: https://habr.com/ru/post/983584/


All Articles