Ah, so if I'm say that anything less than version 4.0 fails the Inno
upgradeable test I should do (4 shl 16)

Regards
Rodney

> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
> On Behalf Of Dave Thayer
> Sent: Tuesday, July 25, 2006 3:28 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Inno Setup question
> 
> On 7/25/06, Rodney Dixon <[EMAIL PROTECTED]> wrote:
> > Why do you do the shl (which I assume is shift left operation)?
> 
> Short answer: That's how the examples I saw on the web worked!
> 
> Long answer:  As far as I can tell, if you have a file with a version
> aa.bb.cc.dd, the version number is actually two 32 bit words, aabb and
> ccdd. I set vfp to start with version 2.0.0 for the first build using
> the inno setup script, so all I need to do is make sure that aa is
> >=2, but since I actually have to compare 2.0 with aabb the 2 needs to
> be shifted left 16 bits, and then combined (the bitwise OR) with the
> minor version of 0.
> 
> A much cleaner example of this is in the Inno Setup Extensions
> Knowledge Base at
>
<http://www.vincenzo.net/isxkb/modules.php?name=News&file=article&sid=32
>
> or <http://tinyurl.com/g7nw7>. This page is offline ATM, but you can
> see the google cache at <http://tinyurl.com/zwtw6>. Look towards the
> end after the "Version Functions" comment.
> 
> HTH
> 
> 
> --
> Dave Thayer
> Denver, CO
> 
> 
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to