View Full Version : Displaying the version number as part of the product name

Dave Boyle
05-17-2004, 05:12 AM
Hi Folks,

I'd like the user to be aware of the version of the s/w they are installing as early in the install as possible, so I'd like to display the version number on the first dialog of the installer.

I thought I'd just be able to change the product name within the IDE to MyAppName [ProductVersion] but the product version property doesn't appear to be substituted and so I end up with "MyAppName [ProductVersion]" being displayed to the user.

Any info regarding to how to get the version number displayed would be very much appreciated.



05-17-2004, 03:12 PM
You've got the write idea, but instead of updating the ProductName property, just update the string that is displayed.

Example: Welcome to the Install Wizard for [ProductName] [ProductVersion].


05-17-2004, 03:26 PM
Another way to get the property is to use the MSIGetProperty function. Something like this.

nSize = 256;
MsiGetProperty(ISMSI_HANDLE, "ProductVersion", strValue, nSize);

This assumes that you are using an MSI project. To get the product version in install script, try using "IFX_PRODUCT_VERSION".

Have fun....:)

Dave Boyle
05-19-2004, 09:41 AM
Hi Guys,

Thanks for your help, the product version is now displayed in my welcome dialog.