[wix-users] unable to make AssemblyFileVersion work

Phill Hogland phill.hogland at rimage.com
Fri Jan 22 06:57:26 PST 2016


I did not post Brannon's sample code in the last post, but Rob are you indicating that the following code using a name bindpath for Product/@Version should work?
    <Product
        Id="..."
        Name="MyStuff"
        Language="1033"
        Version="!(bind.assemblyFileVersion.filMobiusExe)"
        Manufacturer="Autonomous Solutions, Inc."
        UpgradeCode="...">

Thanks for setting me straight, and sorry for any confusion.
Phill
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Rob Mensching
Sent: Thursday, January 21, 2016 6:38 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] unable to make AssemblyFileVersion work

That is not necessarily true: " Product/@Version needs to exist prior to compile time ". Bind variables should flow through correctly (although some things don't always like them, like the v1 SwidTag extension would get confused).

_____________________________________________________________
 Short replies here. Complete answers over there: http://www.firegiant.com/


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phill Hogland
Sent: Thursday, January 21, 2016 2:37 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] unable to make AssemblyFileVersion work

Another observation is that Product/@Version needs to exist prior to compile time so the compiler can use the version number.  A named bindpath variable as you defined it is only resolved in the binding phase after linking.  I use MSBuild to get/generate the version string and either have MSBuild generate a .wxi file or use a MSBuild property with a -d Comipler Tool Setting

 -dPreprocessorVar="$(MSBuildProperty)"

To define a preprocessor var to be used as $(var. PreprocessorVar)

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list