[wix-users] Problem doing a CopyFile in a fragment...
Rob Mensching
rob at firegiant.com
Wed Jul 27 12:14:38 PDT 2016
Almost sounds like you might be "over Fragmenting".
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Lewis Henderson
Sent: Wednesday, July 27, 2016 12:02
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Problem doing a CopyFile in a fragment...
Thanks for the reply Jacob,
I'm using 3.10.2.2516.
The $(var.CopyName) did work when both files were includes, but not as fragments. The problem is that the CopyFile statement is in the large list of components, which is now a fragment. The definitions of CopyName and the COPY_NAME property are in another fragment. This last could be (and used to be) an include, but then you have problem of how to have the "components" fragment pick up the include from different places, depending on which product is being installed.
When both files were includes, the base products included the "definitions" include from different places, but could then include the common "components" include.
I'm trying to move the CopyFile into its own component within the "definitions" fragment (where the $(var.CopyName) will work), but I get a problem with the DirectoryRef of the copied file. The specific error is:
error LGHT0204 : ICE18: KeyPath for Component: 'CopyOf...' is Directory: '...'. The Directory/Component pair must be listed in the CreateFolders table.
The directory, of course, is defined in the "components" fragment. Any ideas on how to get around this issue, or am I heading down the wrong path?
Lewis
More information about the wix-users
mailing list