PDA

View Full Version : Resource Information - bug?


Steve_K
08-11-2008, 10:00 AM
The new 'Custom version information' feature was something we all were waiting for, but I seem to be unable to use

%ProductVer%

in the 'FileVersion' and 'Product Version' boxes of the 'Custom Version Information' section. After compiling the setup, the version info reads 0.0.0.0 - is that by design, or a bug?

Can't I use the %ProductVer% varaible to dynamically set the version info? If not, this 'new feature' is kind of useless as it is a pain to remember to manually edit the information for each update I build.

Thanks.

Mark
08-11-2008, 10:08 AM
Hi Steve_K

If you are looking for dynamic custom version information use design-time constants. You can use the same desing-time constant for the %ProductVer% value and the custom version information.

Session variables are dynamic and meant for the runtime, while design-time constants are meant for design and build times.

Steve_K
08-11-2008, 10:32 AM
Will try that. Thanks! :)

Steve_K
08-11-2008, 10:45 AM
OK, tried that, but how do I get a design-time constant to be equal a session variable? Sorry for being a pain ... the help file does not tell me anything about that.

Mark
08-11-2008, 12:03 PM
Hi Steve_K,

The trick is to use the design-time constant for the value of %ProductVer%.

Steve_K
08-11-2008, 12:12 PM
Sure - didn't get that. :)