How to have the Product version displayed in the MSI file properties (as displayed by Windows Explorer) ?
Our installer is created using WIX. All we see is the product GUID displayed as the Revision Number in the Details tab of the MSI file properties.
We'd like to have the product version (e.g.: 5.0.1.12345) so that the support team (and customers) can easily check the version of a given file.
Adding a WiX setup project In Visual Studio, open your solution, and add a WiX project to it: go to the Visual Studio main menu and click File -> Add -> New Project to open the Add New Project dialog. Choose the Setup Project item in the Windows Installer XML node, specify the project name and click OK.
Windows Installer XML Toolset (WiX, pronounced "wicks"), is a free software toolset that builds Windows Installer packages from XML. It consists of a command-line environment that developers may integrate into their build processes to build MSI and MSM packages.
You just need to create a new WiX project, add your app files, and then build the project. That's it! To create a new WiX project, open Visual Studio and go to File > New > Project. In the New Project dialog, select the “WiX Toolset” template from the list of available templates.
Simply add the Comments attribute to the Package tag as below.
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Comments="Version: 5.0.1.12345" />
There is no version property to be set. So as an alternative we are adding it to the comments attribute. So it can be seen in the properties of the msi.
I don't think that you can actually set a file version on MSI files in WIX. What we do is that we edit the description property of the Package.
<Package InstallerVersion="200" Description="Version: !(bind.FileVersion.filD6DA798364FCF1273EEE80AEF914C743)" InstallScope="perMachine" ...
And then we also make sure that the same version is used for the Product:
<Product Id="*" Name="Name" Language="1033" Version="!(bind.FileVersion.filD6DA798364FCF1273EEE80AEF914C743)" ...
The description is visible in your MSI file properties and so the version will be visible in the description. I hope that is what you want!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With