It may not suit your situation, but I always divorce the installer version
from the version of any file within it because they aren't the same thing.
When we create patches and upgrades, we increment one field of the product
version but the files within it might not change, so the two inevitably
differ. As a result we define pre-processor variables for :
- A build number, passed in from the build process.
- A  product Id suffixed by the major version (for directory and registry key
names).
The ProductVersion number is major.minor.buildnumber.

-----Original Message-----
From: Rob Mensching [mailto:r...@robmensching.com] 
Sent: 25 October 2012 05:25
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Product Version via(bind.FileVersion.$(var.MAINEXE))

Nothing supported natively in WiX toolset.

On Wed, Oct 24, 2012 at 5:44 PM, Johann A. Hough <
joh...@silverskysoftware.com.au> wrote:

> Thanks Peter, good to know.
>
> I however re-use the $(var.VERSION) variable in quite a few other 
> places like directories, shortcuts, websites, etc. and find that have 
> four are excessive, so I'm trying to see if there is a simple way to 
> reduce it to 3 or even 2 for those usages.
>
> Any ideas?
>
> -----Original Message-----
> From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com]
> Sent: Thursday, 25 October 2012 1:47 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Product Version via
> (bind.FileVersion.$(var.MAINEXE))
>
> You can use a 4 field version for a product. Windows stores but 
> ignores the final field.
>
> -----Original Message-----
> From: Johann A. Hough [mailto:joh...@silverskysoftware.com.au]
> Sent: 24 October 2012 16:44
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Product Version via 
> (bind.FileVersion.$(var.MAINEXE))
>
> Hi All
>
> I'm using the approach of defining a variable for the product version 
> which is bound from one of the assemblies.
> <?define VERSION=!(bind.FileVersion.$(var.MAINEXE))?>
>
> This ends up as a number like "1.0.0.0" - how can I strip this down to 
> "1.0.0"?
>
> Thanks,
> Johann
>
> ----------------------------------------------------------------------
> -------
> -
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics Download AppDynamics Lite 
> for free
> today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> SDL PLC confidential, all rights reserved.
> 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.
> SDL PLC is a public limited company registered in England and Wales.
>  Registered number: 02675207.
> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire 
> SL6 7DY, UK.
>
>
>
> ----------------------------------------------------------------------
> -------- Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics Download AppDynamics Lite 
> for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
>
> ----------------------------------------------------------------------
> -------- Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics Download AppDynamics Lite 
> for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



--
virtually,

   Rob Mensching
   http://RobMensching.com LLC
-----------------------------------------------------------------------------
-
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for free
today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to