PDA

View Full Version : Programically assign product version?



peterbi
07-21-2004, 12:27 PM
Hi,

I want to make my package (or product) version relying on the version of major program of the product, the version is installed in "ProductVer.h" file, with a definition like:
#define PRODUCT_VERSION 1.2.3.4
I include the file in setup.rul.

How can I make PRODUCT_VERSION value as the package version?
I tried to do it via CA: create a public property (MYVERSION) and assign PRODUCT_VERSION value to it (make a CA to execute the script), then fill "General Information->Product Properties->Product Version" filed with MYVERSION. But it didn't work.

Is this possible to fill the field with a property instead of a hardcoded version string?

Thanks,
Peter