|
#1
|
|||
|
|||
|
Setting a global variable from ServerEditor.
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. [img]/ubbthreads/images/icons/smile.gif[/img] 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. |
|
#2
|
|||
|
|||
|
Re: Setting a global variable from ServerEditor.
No, the above idea doesn't work because version identification isn't fall through. Too many switch statements for me I guess. [img]/ubbthreads/images/icons/wink.gif[/img]
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.) |
|
#3
|
||||
|
||||
|
Re: Setting a global variable from ServerEditor.
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!
|
|
#4
|
|||
|
|||
|
Re: Setting a global variable from ServerEditor.
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. [img]/ubbthreads/images/icons/laugh.gif[/img]
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT -6. The time now is 07:18 AM.






Linear Mode
