Hi,
        We update the MSI Major and minor version by hand and let the
build process update the build number.

So in the wix <Product> element we have...

 Version="2.0.$(var.SdlBuildNumber)" 

In the wixproj properties in the Build tab (assuming you use votive) we
add SdlBuildNumber=$(SdlBuildNumber); to the define pre-processor
variables section.

SdlBuildNumber is a value we pass into the solution compiliation in our
TFS build process.

If you then want to compile locally in visual studio outside TFSBuild we
hardcode a default value so we don't get errors.

In the top of the wixproj (editing the xml by hand) we have...

<PropertyGroup>
    <SdlBuildNumber>42</SdlBuildNumber>
</PropertyGroup>


You could follow this pattern.
We also distinguish MSI versions from product versions, so we in
development know a product is 8.3 but marketing think its called 2010
Extreme super edition (or whatever is edition de jour).

Dave

-----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
</pre>
<BR style="font-size:4px;">
<a href = "http://www.sdl.com";><img src="http://www.sdl.com/images/email 
logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a>
<BR>
<font face="arial"  size="2" "><a href = "http://www.sdl.com"; 
style="color:005740; font-weight: bold">www.sdl.com</a>
<BR>
<BR>
<font face="arial"  size="1" color="#736F6E">
<b>SDL PLC confidential, all rights reserved.</b>
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.<BR>
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.<BR>
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.
</font>



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