[wix-users] How to read Preprocessor variables in C# Bootstrapper code?
Harinatha Narisetty
harinatha.narisetty at us.abb.com
Tue Feb 7 11:26:24 PST 2017
Got it .. Thank you.
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Edwin Castro
Sent: Tuesday, February 07, 2017 2:25 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] How to read Preprocessor variables in C# Bootstrapper code?
Preprocessor variables are usable only by the WiX compiler, candle.exe. If you want your bootstrapper to see that value, then you'll want to author a Variable whose value is the value of your preprocessor variable. See http://wixtoolset.org/documentation/manual/v3/xsd/wix/variable.html
and http://wixtoolset.org/documentation/manual/v3/overview/preprocessor.html
for details.
I expect you'll need something like the following:
<Variable Name="FullVersionNumber" Value="$(var.FullVersionNumber)"/>
You should then be able to access FullVersionNumber as a regular property in the bootstrapper.
--
Edwin G. Castro
On Tue, Feb 7, 2017 at 8:51 AM, Harinatha Narisetty <harinatha.narisetty at us.abb.com> wrote:
> Hi ,
> I have preprocessor variables defined as FullVersionNumber=1.5.6; I
> want to read this my custom bootstrapper .. Any idea how to read this?
>
> Thanks
> Hari
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list