Prev Previous Post   Next Post Next
Old 11th November 2005, 18:52   #1
Jamyn
Junior Member
 
Join Date: Aug 2002
Location: Texas
Posts: 36
Convert Version Number?

Hi all,

Can anyone help me with converting a version number to a name? Basically, I'm reading the version info from the program's .exe file and trying to change a VERSION variable in the installer.

I have used the last number in the version string to specify what type of release it is. For example:

x.x.x.0 - 89 specifies beta versions.
1.0.3.5 - 1.0.3 beta 5

x.x.x.91 - 99 specifies release candidates.
1.0.4.92 - 1.0.4 RC 2

x.x.x.100 specifies a release build.
1.0.2.100 - 1.0.2 release

Reading the version number from the exe file is fine, thanks to scripting by others in the wiki. But can someone show me an example where I can "search" in the version string for each piece of the version number? The "." makes a great delimiter when searching, but I can't quite wrap my head around how to read each piece into temporary vars. If I could figure out how to read each piece, I think I will be able to do number comparisons to see if the number is higher or lower than a range, etc.

Then I can put the version number in various parts of the installer as "1.0 beta 6" or whatever. I will still try to figure this out myself of course, I'm just not that great with NSIS yet.
Jamyn is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump