Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Aug 2004
    Posts
    98

    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.

  2. #2
    Join Date
    Jun 2000
    Location
    Indigo Rose Software
    Posts
    1,943
    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

  3. #3
    Join Date
    Aug 2004
    Posts
    98
    Will try that. Thanks!

  4. #4
    Join Date
    Aug 2004
    Posts
    98
    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.

  5. #5
    Join Date
    Jun 2000
    Location
    Indigo Rose Software
    Posts
    1,943
    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

  6. #6
    Join Date
    Aug 2004
    Posts
    98
    Sure - didn't get that.

  7. #7
    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

  8. #8
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    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

  9. #9
    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

  10. #10
    Join Date
    Jul 2001
    Location
    Harrisburg, PA , USA
    Posts
    114

    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.

  11. #11
    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

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts