Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Product version displayed in WIX-made MSI file properties?

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.

like image 507
Serge Wautier Avatar asked Mar 10 '15 09:03

Serge Wautier


People also ask

How do I create an MSI File with WiX?

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.

What is WiX MSI?

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.

How do I create a Windows Installer MSI .NET core WiX?

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.


2 Answers

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.

like image 182
LeoN Avatar answered Oct 11 '22 10:10

LeoN


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!

like image 33
westerstrom Avatar answered Oct 11 '22 11:10

westerstrom