Also you could use the Directory or DirectoryRef @FileSource  attribute to
say where all files in a folder are pulled in from then you can make your
component definitions very clean.

e.g. your example component would be :-

<DirectoryRef Id="myInstallerFolder" FileSource="$(var.LocalRootDir )">

<Component>
<File Name="Scheduling.exe"/>
</Component>

 More components.

</DirectoryRef>


This does change the component ID to 'Scheduling.exe' though, so beware of ID
clashes.

-----Original Message-----
From: Sean Hall [mailto:rhal...@hotmail.com] 
Sent: 16 July 2013 01:41
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Newbie question

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.c
> lktrk _______________________________________________
> 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
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
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

Reply via email to