Jarl Friis <[EMAIL PROTECTED]> writes:

> Bob Arnson <[EMAIL PROTECTED]> writes:
>
>> Jarl Friis wrote:
>>> This results in Error LGHT0204: ICE18: KeyPath for Component:
>>> 'Comp2' is Directory:
>>> 'MyDir'. The Directory/Component pair must be listed in the
>>> CreateFolders table.
>>>
>>> According to the documentation, the above should be the way to select
>>> copying a file, by installing/uninstalling the parent
>>> component. However, when the parent component does not contain any
>>> other elements than a CopyFile, I get the above error.
>>>
>>> Can someone tell me what it means? and what I should do to resolve it?
>>>
>>
>> MSI rules say that each component's directory must be created, either
>> implicitly by installing files there -- the CopyFile doesn't count --
>> or explicitly with CreateFolder (in WiXspeak). So just add a
>> CreateFolder element as a child of the CopyFile's Component
>> element. It's harmless and satisfies the ICE validation error.

I also found another way of solving this issue.  put the component
(that contained the <CopyFile>) into a <DirectoryRef Id="TARGETDIR">
element. This is possible because I specify both source (by FileId)
and destination (by DestinationProperty) explicitely in the <CopyFile>
element. I consider this way of doing it to be cleaner, since I avoid
an artificial <CreateFolder> element.

Thanks for all the replies anyway.

Jarl

-- 
Jarl Friis
Softace ApS
Omøgade 8, 2.sal
2100 København Ø.
Denmark
Phone:  +45 26 13 20 90
E-mail: [EMAIL PROTECTED]
LinkedIn: https://www.linkedin.com/in/jarlfriis


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to