PDA

View Full Version : Setting a global variable from ServerEditor.


BSchkerke
10-08-2002, 10:01 AM
I have two versions in my server file.

Older Version, which looks like the following:
Version Identifier:
INI FILE (%SrcDir%\Settings.ini: [Version]: Version < 2565)

Actions:
Assign Value (%Version% = 2625)
Assign Value (%FileName% = wtw-v%Version%.zip)
HTTP Download (http://wintitleworx/wtw/patches/%FileName% -> %SrcDir%\Patches)
Unzip Files (%SrcDir%\Patches\%FileName% -> %SrcDir%)
Modify INI File (Set Value: %SrcDir%\Settings.ini [Version]: Version = %Version%)
Open Document (open %SrcDir%\WinTitleWorx.adp)

Latest Version:
Version Identifier:
INI File (%SrcDir%\Settings.ini: [Version]: Version=2625)

Actions:
Open Document (open %SrcDir%\WinTitleWorx.adp)

What I'd like to do is replace the 2625 in both versions with a global variable of some sort so I only have to set it in one place. Is this possible somehow? I'm afraid to tinker too much with this system since it's already been deployed. /ubbthreads/images/icons/smile.gif

Hm, just had an idea to insert a version with no identifying information in it and settings a variable in it's actions to %CurrentVersion%, then using that in the Version Identifiers section of the following two and mark them as expressions..

Gah, I'll go try it.

BSchkerke
10-08-2002, 10:06 AM
No, the above idea doesn't work because version identification isn't fall through. Too many switch statements for me I guess. /ubbthreads/images/icons/wink.gif

Is it possible to have a global variable added to the wish list if this isn't possible via another method? It'd be handy for other things I imagine like "ApplicationName", etc.

And before anyone asks I don't create a shortcut to my application, I create a shortcut to TrueUpdate, which then launches my application (OpenDocument) upon success of updating. TrueUpdate is set to run silently unless an update is found, in which case it -only- shows update progress. It allows for quiet, seamless updating in a corporate environment.

(I love TrueUpdate. I love TrueUpdate. Repeat ad nausem. TU has saved me SO many headaches.)

Brett
10-08-2002, 12:39 PM
You are right in that TrueUpdate does not support global constants at this point. That is ceratinly one of the many improvements that we will get into a future release. Thanks for the input, and thanks for lovin' our product!

BSchkerke
10-09-2002, 10:29 AM
Thanks for the reply! I'd love to see it as I've come up with all kinds of ideas for how they'd be useful. /ubbthreads/images/icons/laugh.gif