No, there is not.  There is a related preprocessor macro that will generate a 
Microsoft-style version number provide a product major and product minor, but 
the functiontionality you want really needs to exist early in the build 
process.  It is sad that Microsoft only chose to expose the AssemblyVersion in 
a standard MSBuild task, but the MSBuild.ExtensionPak certainly extends well 
beyond that.

Using reflection, you can get whatever you want out of an assembly, but again 
that is not Wix functionality.

Burn, of course, has access to many of these properties from an MSI, but that 
is much later in a build.

--
John Merryweather Cooper
Senior Software Engineer | Enterprise Service Applications | Continuing 
Development
Jack Henry & Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 
|jocoo...@jackhenry.com



-----Original Message-----
From: Brian Enderle [mailto:bria...@gmail.com] 
Sent: Tuesday, November 18, 2014 8:54 AM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Define AssemblyProduct in BeforeBuild

Is there no way to do this with the standard Wix?  I hate installing another 
package in our project for just one or two values.

Brian

If you can't explain it simply, you don't understand it well enough.  - Albert 
Einstein

On Tue, Nov 18, 2014 at 9:02 AM, John Cooper <jocoo...@jackhenry.com> wrote:

> Yes, with MSBuild.ExtensionPak (4.0.9.0 is current).  It's also not 
> hard to write an MSBuild task that will do it easily.
>
> --
> John Merryweather Cooper
> Senior Software Engineer | Enterprise Service Applications | 
> Continuing Development Jack Henry & Associates, Inc.® | Lenexa, KS  
> 66214 | Ext:  431050 | jocoo...@jackhenry.com
>
>
>
> -----Original Message-----
> From: Brian Enderle [mailto:bria...@gmail.com]
> Sent: Tuesday, November 18, 2014 7:52 AM
> To: WiX Users
> Subject: [WiX-users] Define AssemblyProduct in BeforeBuild
>
> We currently get our product version in the .wixproj file by using the
> following:
>
>   <Target Name="BeforeBuild">
>
>     <GetAssemblyIdentity
>
> AssemblyFiles="$(SolutionDir)MyProgram\bin\x86\$(Configuration)\MyProgram.exe">
>       <Output TaskParameter="Assemblies" ItemName="AssemblyVersions" />
>     </GetAssemblyIdentity>
>     <CreateProperty Value="%(AssemblyVersions.Version)">
>       <Output TaskParameter="Value" PropertyName="AssyVersion" />
>     </CreateProperty>
>
>   </Target>
>
>
> Is there a way to also get the AssemblyProduct and AssemblyTitle from 
> Assembly.cs like we are with AssemblyVersion?  I couldn't find 
> anything that defined what 'Value' could accept as a value (i.e.,
> "%(AssemblyVersions.Version)")
>
>
> Brian
>
> If you can't explain it simply, you don't understand it well enough.  
> - Albert Einstein
>
> ----------------------------------------------------------------------
> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT 
> Server from Actuate! Instantly Supercharge Your Business Reports and 
> Dashboards with Interactivity, Sharing, Native Excel Exports, App 
> Integration & more Get technology previously reserved for 
> billion-dollar corporations, FREE 
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.
> clktrk _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> NOTICE: This electronic mail message and any files transmitted with it 
> are intended exclusively for the individual or entity to which it is 
> addressed. The message, together with any attachment, may contain 
> confidential and/or privileged information.
> Any unauthorized review, use, printing, saving, copying, disclosure or 
> distribution is strictly prohibited. If you have received this message 
> in error, please immediately advise the sender by reply email and 
> delete all copies.
>
>
>
> ----------------------------------------------------------------------
> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT 
> Server from Actuate! Instantly Supercharge Your Business Reports and 
> Dashboards with Interactivity, Sharing, Native Excel Exports, App 
> Integration & more Get technology previously reserved for 
> billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.
> clktrk _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! 
Instantly Supercharge Your Business Reports and Dashboards with Interactivity, 
Sharing, Native Excel Exports, App Integration & more Get technology previously 
reserved for billion-dollar corporations, FREE 
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to