Use a .wxi file. For more info, look at this StackOverflow question
http://stackoverflow.com/questions/8495903/how-to-define-a-global-variable-in-wix
Sean
> Date: Mon, 15 Jul 2013 16:46:13 -0700
> From: kpet...@otaksoft.com
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Newbie question
>
> Hi,
>
> I do
>
> <?define LocalRootDir="C:\install_sources\product_ABC\2.10.2 SP10\release
> 2" ?>
>
> above the product tag in my main.wxs file. I have a number of fragment
> files, each handling a large number of DLLs for certain product categories.
>
> I now want to refer to the LocalRootDir from within these fragment files
>
> <Component Id="COMP_Scheduling" Guid="*">
> <File Id="FILE_Scheduling" Name="Scheduling.exe"
> KeyPath="yes"
> Vital="yes"
> Source="$(var.LocalRootDir)\Scheduling.exe" />
> </Component>
>
> I have not been able to do this without redefining LocalRootDir in each of
> the fragment files.
>
> Clearly, I am not doing things right. How can I achieve this?
>
> TIA,
> Kai
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users