Dan posted on February 28, 2011 13:38

Doing some wix work at the moment and came across the need to default some varibles if they weren't passed in to candle.  In my case we have a private build that creates an installer for an application but as it's a private build we don't have a version number (well we do but it's 1.0.0.0 to denote developer build).

Anyway the below code defines a varible if it doesn't exist:

<?ifndef ProductVersion ?>
<?define ProductVersion="1.0.0.0" ?>
<?endif ?>

<Product Id="*" Name="AppName" Language="1033" Version="$(var.ProductVersion)" Manufacturer="ATeam" UpgradeCode="$(var.UpgradeCode)">

 

 


Posted in: wix  Tags: ,

Calendar

«  May 2012  »
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910
View posts in large calendar

Recent Comments

Banners

Theme Grabber
Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2012 Dan Gibbons .Net Developer