You're still missing the point.

"The first field is the major version and has a maximum value of 255."

Is 2010 greater or less than 255?

You can do something like

<?define ProductVersion="2010.2.0.0" ?>

<Product Id="{B6870E83-42B6-409F-9309-8363A604C1F1}"
Version="!(var.ProductVersion)" >

But you're still not going to get it to work as you can't have 2010 as
your major version field. Unless you bind it to a different file you're
going to have to manually update the version number somewhere to
something which falls within the range allowed by Windows Installer,
either in your WiX code or in whatever method you use to set something
like var.ProductVersion before you build.

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

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: subrat agasti [mailto:subrat.w...@gmail.com] 
Sent: 27 July 2010 14:44
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] updating the version number automatically

I think u missed what i was asking. My assembly has a version
2010.2.0.0. I dont want to change that version. And because of this I
can't use the !(bind.FileVersion.fileId), which will update the product
version number based on the assembly version.

<Product Id="{B6870E83-42B6-409F-9309-8363A604C1F1}"
Version="!(bind.FileVersion.myfileId)"  >

So i was asking if there is any other method to update the version
number automatically now that i cannot use !(bind.FileVersion.fileId).

Thanks for the "Where's Wally" stuff though.

On Tue, Jul 27, 2010 at 6:41 PM, Pally Sandher
<pally.sand...@iesve.com>wrote:

> OK you clearly missed the point on the page linked so I'll do you a 
> favour & copy & paste it in the hope that you spot the issue this
time.
> Consider this the WiX-users list version of "Where's Wally".
>
>
> "The format of the string is as follows:
>
> major.minor.build
>
> The first field is the major version and has a maximum value of 255. 
> The second field is the minor version and has a maximum value of 255. 
> The third field is called the build version or the update version and 
> has a maximum value of 65,535."
>
>
> Palbinder Sandher
> Software Deployment & IT Administrator
> T: +44 (0) 141 945 8500
> F: +44 (0) 141 945 8501
>
> 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: subrat agasti [mailto:subrat.w...@gmail.com]
> Sent: 27 July 2010 14:03
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] updating the version number automatically
>
> Thanks for the quick reply Pally. I can't use the
> !(bind.FileVersion.fileId) , because I can't change my file version. 
> Is there any other way to update the version number of the MSI 
> automatically? is it possible to read it from a file ?
>
> On Tue, Jul 27, 2010 at 6:10 PM, Pally Sandher
> <pally.sand...@iesve.com>wrote:
>
> > http://msdn.microsoft.com/en-us/library/aa370859.aspx
> >
> > Palbinder Sandher
> > Software Deployment & IT Administrator
> > T: +44 (0) 141 945 8500
> > F: +44 (0) 141 945 8501
> >
> > 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: subrat agasti [mailto:subrat.w...@gmail.com]
> > Sent: 27 July 2010 13:25
> > To: wix-users@lists.sourceforge.net
> > Subject: [WiX-users] updating the version number automatically
> >
> > Hi,
> >
> > I am updating the version number of my msi  using 
> > !(bind.FileVersion.fileId). But i am getting an error which says 
> > that the version number 2010.2.0.0 is invalid.Why is that? This is 
> > the version number of my .exe file. I can't change the version 
> > number of this file. Is there any other way to update the version 
> > number of the MSI automatically? is it possible to read it from a
file ?
> >
> > Thanks,
> >
> > Subrat Agasti
> > --------------------------------------------------------------------
> > --
> > --
> > ------
> > The Palm PDK Hot Apps Program offers developers who use the Plug-In 
> > Development Kit to bring their C/C++ apps to Palm for a share of $1 
> > Million in cash or HP Products. Visit us here for more details:
> > http://ad.doubleclick.net/clk;226879339;13503038;l?
> > http://clk.atdmt.com/CRS/go/247765532/direct/01/
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> >
> >
> > --------------------------------------------------------------------
> > --
> > -------- The Palm PDK Hot Apps Program offers developers who use the

> > Plug-In Development Kit to bring their C/C++ apps to Palm for a 
> > share of $1 Million in cash or HP Products. Visit us here for more
details:
> > http://ad.doubleclick.net/clk;226879339;13503038;l?
> > http://clk.atdmt.com/CRS/go/247765532/direct/01/
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> ----------------------------------------------------------------------
> --
> ------
> The Palm PDK Hot Apps Program offers developers who use the Plug-In 
> Development Kit to bring their C/C++ apps to Palm for a share of $1 
> Million in cash or HP Products. Visit us here for more details:
> http://ad.doubleclick.net/clk;226879339;13503038;l?
> http://clk.atdmt.com/CRS/go/247765532/direct/01/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
>
> ----------------------------------------------------------------------
> -------- The Palm PDK Hot Apps Program offers developers who use the 
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://ad.doubleclick.net/clk;226879339;13503038;l?
> http://clk.atdmt.com/CRS/go/247765532/direct/01/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------
------
The Palm PDK Hot Apps Program offers developers who use the Plug-In
Development Kit to bring their C/C++ apps to Palm for a share of $1
Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to