Michael Kelley
Michael Kelley

Reputation: 3689

How do I set the version visible in 'Programs and Features'?

I need to set the version visible in the 'Programs and Features' dialog in Windows. I know that this version doesn't have to follow the major.minor.build.revision restriction (for example, wxPython shows '2.8.12.1-unicode' in its 'Version' column), but when I attempt to set the Version attribute in the Product element I get the following error:

Product.wxs(50,0): error CNDL0108: The Product/@Version attribute's value, '2.3.4.0-55628f206205451282ae6060d9305254bd79cb87', is not a valid version.  Legal version values should look like 'x.x.x.x' where x is an integer from 0 to 65534.

There must be a different property but I can't find it in the Wix documentation.

How do I set this version visible in Wix to an arbitrary string?

EDIT:

See the image below to see some of the different version schemes that don't follow the Windows Installer standard (wxPython, Windows Driver Package*, Windows Mobile 5.0 SDK). enter image description here

Upvotes: 1

Views: 2135

Answers (4)

Alegntaye YIlma
Alegntaye YIlma

Reputation: 11

If you are using the .Net setup project look for Version under "Deployment Project Properties".

Upvotes: 1

PhilDW
PhilDW

Reputation: 20790

The underlying MSI property that shows up in Add/Remove Programs aka Programs&Features is the ProductVersion property and it does have to follow a numeric format:

http://msdn.microsoft.com/en-us/library/aa370859(v=vs.85).aspx

You may be able to get a text version to show if you create a DisplayVersion text string in the Uninstall registry key. I suggest you look at the wxPython entry in the Uninstall key to see what's in DisplayVersion rather than in the binary Version value.

Upvotes: 0

Bob Arnson
Bob Arnson

Reputation: 21896

Windows Installer doesn't support having separate product version and display versions.

Upvotes: 4

Stein Åsmul
Stein Åsmul

Reputation: 42206

I am not entirely sure what you are referring to with "Programs and Features"? Are you talking about "Add/Remove Programs" in Windows, or are you talking about the dialogs in your setup?

I suppose you can have a look here: Configuring Add/Remove Programs with Windows Installer, but without knowing more I don't quite know if this is what you are asking.

Please be aware that this list of programs and applications does not come from just one registry location. I do believe that it is not possible to override the version field for Windows Installer packages whether they are built using Wix or other tools. If the installation is done with non-MSI setups, I suppose they can set the version field as they see fit, but Windows Installer enforces restrictions. Perhaps you can set the ARPCOMMENTS property to a value indicating what you want to indicate.

Upvotes: 0

Related Questions