In darice.cub there is some vbscript for ICE61:
Function VersionStringToLong(strng)
Dim i, iPos, sAccum, sTemp
On Error Resume Next
  sTemp = strng
  iPos = InStr(sTemp & ".", ".")
  sAccum = "&H" & Right("00" & Hex(CInt(Left(sTemp, iPos - 1))), 2)
  If Err.Number > 0 Then VersionStringToLong = 0: Exit Function
  sTemp = Mid(sTemp & ".", iPos + 1)
  iPos = InStr(sTemp & ".", ".")
  sAccum = sAccum & Right("00" & Hex(CInt(Left(sTemp, iPos - 1))), 2)
  If Err.Number > 0 Then VersionStringToLong = 0: Exit Function
  sTemp = Mid(sTemp & ".", iPos + 1)
  iPos = InStr(sTemp & ".", ".")
  sAccum = sAccum & Right("0000" & Hex(CInt(Left(sTemp, iPos - 1))), 4)
  If Err.Number > 0 Then VersionStringToLong = 0: Exit Function
  VersionStringToLong = CLng(sAccum)
  Exit Function
End Function
 
It splits around the dots in the version string and tries to produce a long. 
I'm not sure if this is actually called but if it is, the bug is in the last 
part. CInt converts to an integer. Unfortunately in vbscript Integers can only 
contain values in the range -32,768 to 32,767. So the function will return 
always 0 if the buildnumber is larger then 32767 (due to the error). You could 
hack your own version....
 
 

________________________________

Van: Pally Sandher [mailto:pally.sand...@iesve.com]
Verzonden: vr 15-1-2010 16:45
Aan: General discussion for Windows Installer XML toolset.
Onderwerp: Re: [WiX-users] ICE61: Upgrade.VersionMax format is wrong



Looks like it's a bug in ICE61.
According to the MSDN documentation, VersionMin & VersionMax both "must
be a valid product version as described for the ProductVersion
property." See ->
http://msdn.microsoft.com/en-us/library/aa372379(VS.85).aspx
ProductVersion properties are valid if "The third field ... has a
maximum value of 65,535." See ->
http://msdn.microsoft.com/en-us/library/aa370859(VS.85).aspx

I've tried replacing the darice.cub in my WiX 3.0 binaries with the one
from the Windows Installer 4.5 SDK Orca MSI but this gives the exact
same error when using 32768 as the 3rd field in a VersionMin or
VersionMax attribute of an Upgrade Element. When I try using the one
from the Windows Installer 5 SDK Orca MSI the ICE's fail to run at all
so I can't be sure whether the documentation has been updated to reflect
changes in Windows Installer 5 & is misleading us since we're still
using the 4.5 SDK ICE's.


Palbinder Sandher
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501

http://www.iesve.com <http://www.iesve.com/> 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer


-----Original Message-----
From: Rob Mensching [mailto:r...@robmensching.com]
Sent: 15 January 2010 08:23
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] ICE61: Upgrade.VersionMax format is wrong

No. Unfortunately, the ICEs in the WiX toolset come from the MSI SDK. If
they were in WiX we'd fix 'em! <smile/>

On Thu, Jan 14, 2010 at 11:05 PM, Castro, Edwin G. (Hillsboro) <
edwin.cas...@fiserv.com> wrote:

> FYI: I found that light.exe has a -sice:<ICE> argument.
>
> Are the ICE distributed by WiX owned by WiX? Do I need to add a WiX
bug?
>
> Edwin G. Castro
> Software Developer - Staff
> Electronic Banking Services
> Fiserv
> Office: 503-746-0643
> Fax: 503-617-0291
> www.fiserv.com
> P Please consider the environment before printing this e-mail
>
>
> > -----Original Message-----
> > From: Castro, Edwin G. (Hillsboro) [mailto:edwin.cas...@fiserv.com]
> > Sent: Thursday, January 14, 2010 10:37 PM
> > To: General discussion for Windows Installer XML toolset.
> > Subject: Re: [WiX-users] ICE61: Upgrade.VersionMax format is wrong
> >
> > Just tried building with 3.3.32767.0 and with 3.3.32768.0.
> >
> > 3.3.32767.0: No errors
> > 3.3.32768.0: error LGHT0204: ICE61: Upgrade.VersionMax 3.3.32768.0
> > format is wrong
> >
> > Looks like an incorrectly implemented ICE. Can I exclude ICE61?
> >
> > Edwin G. Castro
> > Software Developer - Staff
> > Electronic Banking Services
> > Fiserv
> > Office: 503-746-0643
> > Fax: 503-617-0291
> > www.fiserv.com
> > P Please consider the environment before printing this e-mail
> >
> > > -----Original Message-----
> > > From: Simon Dahlbacka [mailto:simon.dahlba...@gmail.com]
> > > Sent: Thursday, January 14, 2010 10:01 PM
> > > To: General discussion for Windows Installer XML toolset.
> > > Subject: Re: [WiX-users] ICE61: Upgrade.VersionMax format is wrong
> > >
> > > just a hunch, can it be that the ICE is (wrongly) using a signed
> > > 16- number for the third field?
> > >
> > > On Fri, Jan 15, 2010 at 5:22 AM, Castro, Edwin G. (Hillsboro) <
> > > edwin.cas...@fiserv.com> wrote:
> > >
> > > > I'm getting the following error from light:
> > > >
> > > > error LGHT0204: ICE61: Upgrade.VersionMax 3.3.34567.0 format is
> > wrong
> > > >
> > > > The ProductVersion Property documentation <
> > > > http://msdn.microsoft.com/en-
> > > us/library/aa370859(VS.85).aspx<http://msdn.microsoft.com/en-
> > > us/library/aa370859%28VS.85%29.aspx>>
> > > > tells me that the first three fields have the following
maximums:
> > > 255, 255,
> > > > 65535. It also tells me that a fourth field is ignored if
provided.
> > > >
> > > > I can't figure out how the format is wrong. I tried building the
> > > installer
> > > > with the third and fourth fields reversed (3.3.0.34567) and I
> > didn't
> > > get any
> > > > complaints from light. Can anybody explain why 3.3.34567.0 is
> > wrong?
> > > >
> > > > Edwin G. Castro
> > > > Software Developer - Staff
> > > > Electronic Banking Services
> > > > Fiserv
> > > > Office: 503-746-0643
> > > > Fax: 503-617-0291
> > > > www.fiserv.com<http://www.fiserv.com/>
> > > > P Please consider the environment before printing this e-mail
> > > >
> > > >
> > > > ----------------------------------------------------------------
> > > > ---
> > --
> > > ---------
> > > > Throughout its 18-year history, RSA Conference consistently
> > attracts
> > > the
> > > > world's best and brightest in the field, creating opportunities
> > > > for Conference attendees to learn about information security's
> > > > most important
> > issues
> > > > through
> > > > interactions with peers, luminaries and emerging and established
> > > companies.
> > > > http://p.sf.net/sfu/rsaconf-dev2dev
> > > > _______________________________________________
> > > > WiX-users mailing list
> > > > WiX-users@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > > >
> > > ------------------------------------------------------------------
> > > ---
> > --
> > > -------
> > > Throughout its 18-year history, RSA Conference consistently
> > > attracts the world's best and brightest in the field, creating
> > > opportunities for Conference attendees to learn about information
> > > security's most important issues through interactions with peers,
> > > luminaries and emerging and established companies.
> > > http://p.sf.net/sfu/rsaconf-dev2dev
> > > _______________________________________________
> > > WiX-users mailing list
> > > WiX-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > --------------------------------------------------------------------
> > ---
> > -------
> > Throughout its 18-year history, RSA Conference consistently attracts

> > the world's best and brightest in the field, creating opportunities
> > for Conference attendees to learn about information security's most
> > important issues through interactions with peers, luminaries and
> > emerging and established companies.
> > http://p.sf.net/sfu/rsaconf-dev2dev
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ----------------------------------------------------------------------
> -------- Throughout its 18-year history, RSA Conference consistently
> attracts the world's best and brightest in the field, creating
> opportunities for Conference attendees to learn about information
> security's most important issues through interactions with peers,
> luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



--
virtually, Rob Mensching - http://RobMensching.com <http://robmensching.com/>  
LLC
------------------------------------------------------------------------
------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for
Conference attendees to learn about information security's most
important issues through interactions with peers, luminaries and
emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users





Please help Logica to respect the environment by not printing this email  / 
Pour contribuer comme Logica au respect de l'environnement, merci de ne pas 
imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie 
so Logica dabei, die Umwelt zu schützen. /  Por favor ajude a Logica a 
respeitar o ambiente nao imprimindo este correio electronico.



This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to