Indigo Rose Software
  #1  
Old 08-11-2008
Steve_K Steve_K is offline
Indigo Rose Customer
 
Join Date: Aug 2004
Posts: 96
Grin Resource Information - bug?

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.
Reply With Quote
  #2  
Old 08-11-2008
Mark's Avatar
Mark Mark is offline
Indigo Rose Staff Member
 
Join Date: Jun 2000
Location: Indigo Rose Software
Posts: 1,773
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.
__________________
MSI Factory The Next Generation Intelligent Setup Builder
Reply With Quote
  #3  
Old 08-11-2008
Steve_K Steve_K is offline
Indigo Rose Customer
 
Join Date: Aug 2004
Posts: 96
Will try that. Thanks!
Reply With Quote
  #4  
Old 08-11-2008
Steve_K Steve_K is offline
Indigo Rose Customer
 
Join Date: Aug 2004
Posts: 96
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.
Reply With Quote
  #5  
Old 08-11-2008
Mark's Avatar
Mark Mark is offline
Indigo Rose Staff Member
 
Join Date: Jun 2000
Location: Indigo Rose Software
Posts: 1,773
Hi Steve_K,

The trick is to use the design-time constant for the value of %ProductVer%.
__________________
MSI Factory The Next Generation Intelligent Setup Builder
Reply With Quote
  #6  
Old 08-11-2008
Steve_K Steve_K is offline
Indigo Rose Customer
 
Join Date: Aug 2004
Posts: 96
Sure - didn't get that.
Reply With Quote
  #7  
Old 07-23-2009
Maind Maind is offline
Forum Member
 
Join Date: Nov 2008
Posts: 10
I have try with Setup Factory 8.0.
I have created a constants #VER# and I have assigned %ProductVer%.
Afrer I have write on resources the constant #VER# on Comments Line, but the result are %ProductVer%.

Any solution?

Thanks
Reply With Quote
  #8  
Old 07-23-2009
Ulrich's Avatar
Ulrich Ulrich is offline
Indigo Rose Staff Member
 
Join Date: Apr 2005
Location: Sao Paulo, Brazil
Posts: 823
You should use the design time constant to set the session variable, not the other way around. Perhaps this is what you are doing?

Ulrich
Reply With Quote
  #9  
Old 07-24-2009
Maind Maind is offline
Forum Member
 
Join Date: Nov 2008
Posts: 10
I can't do the opposite?
I would like assign to constant the value into the session variables.

Thanks
Andrea
Reply With Quote
  #10  
Old 07-24-2009
jcuster jcuster is offline
Indigo Rose Customer
 
Join Date: Jul 2001
Location: Harrisburg, PA , USA
Posts: 91
I hope this a good explination

Quote:
Originally Posted by Mark View Post
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.
Sorry to pipe in here, but how can constants be dynamic, Design-Time or otherwise?

Simple method
1. Define Constant #VER# in Build Configuration
2. Set %ProductVer% to #VER# in Settings/Session Variables
3. Use #VER# in the 'Custom version information'
4. Use %ProductVer% in the action scripts

This will allow you to only have to change the Product version in the Build Configuration/#VER#. The Action scripts can not modify the Product Version/#VER# but can still manipulate the %ProductVer% during runtime.
Reply With Quote
  #11  
Old 07-24-2009
Maind Maind is offline
Forum Member
 
Join Date: Nov 2008
Posts: 10
Quote:
Originally Posted by jcuster View Post
Sorry to pipe in here, but how can constants be dynamic, Design-Time or otherwise?
In fact I had not understood how it was possible.
Now I have understand.
Thanks.

Andrea
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug? ComboBox Data with "Rename resource files" rep AutoPlay Media Studio 7.5 Suggestions 1 05-27-2008 11:36 AM
TrueUpdate 2.0 Update (v2.0.6.0) Released Brett TrueUpdate 2.0 0 10-31-2006 02:10 PM
AutoPlay Media Studio 4.0.0.3 Released Brett AutoPlay Media Studio 4.0 0 12-11-2002 09:39 AM
INFO: Changing the Resource Information for a Setup.exe Support Setup Factory 5.0 0 10-15-2002 03:09 PM
INFO: Changing the Resource Information for a Setup.exe Support Setup Factory 6.0 Knowledge Base 0 10-15-2002 03:09 PM


All times are GMT -6. The time now is 12:24 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software