Jarl:

Try using the CopyFile in this way:

<Component>
  <File>
     <CopyFile />
  </File>
</Component>

I believe that CopyFile as a child to a Component element is for a file that already exists on the machine. In your case, you look to be installing the file and copying it in your MSI.

David Adams
MSN MessengerID: [EMAIL PROTECTED]





From: Jarl Friis <[EMAIL PROTECTED]>
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] <CopyFile> in <Component> gives problems.
Date: Wed, 18 Oct 2006 22:10:38 +0200
MIME-Version: 1.0
Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by bay0-mc9-f9.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Wed, 18 Oct 2006 13:11:10 -0700 Received: from sc8-sf-list1-new.sourceforge.net (unknown [10.3.1.93])by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTPid 1A6F2123CF; Wed, 18 Oct 2006 13:10:51 -0700 (PDT) Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91]helo=mail.sourceforge.net)by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43)id 1GaHkT-0003Ij-Jrfor wix-users@lists.sourceforge.net; Wed, 18 Oct 2006 13:10:47 -0700 Received: from cicero2.cybercity.dk ([212.242.40.53])by mail.sourceforge.net with esmtp (Exim 4.44) id 1GaHkS-00010X-4Sfor wix-users@lists.sourceforge.net; Wed, 18 Oct 2006 13:10:45 -0700 Received: from zeus.intra.softace.dk.diku.dk (port689.ds1-ry.adsl.cybercity.dk[212.242.182.60])by cicero2.cybercity.dk (Postfix) with ESMTP id 5FCA824526Bfor <wix-users@lists.sourceforge.net>;Wed, 18 Oct 2006 22:10:39 +0200 (CEST)
X-Message-Info: LsUYwwHHNt00EO4wDZMdDIZd00eae8s/ch047G0Y1DI=
Organization: Software developer
User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.5 (chestnut, linux)
X-Spam-Score: 1.0 (+)
X-Spam-Report: Spam Filtering performed by sourceforge.net.See http://spamassassin.org/tag/ for more details.Report problems tohttp://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 FORGED_RCVD_HELO Received: contains a forged HELO
X-BeenThere: wix-users@lists.sourceforge.net
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: "General discussion for Windows Installer XML toolset."<wix-users.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/wix-users>,<mailto:[EMAIL PROTECTED]> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=wix-users>
List-Post: <mailto:wix-users@lists.sourceforge.net>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/wix-users>,<mailto:[EMAIL PROTECTED]>
Errors-To: [EMAIL PROTECTED]
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 18 Oct 2006 20:11:10.0852 (UTC) FILETIME=[8DE8C440:01C6F2F1]

I have a
<Directory Id="MyDir">
  <Component Id="Comp1">
    <File Id="fileID" ... />
  <Component>
  <Component Id="Comp2">
    <CopyFile FileId="fileID" />
  <Component>
</Directory>

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?

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

_________________________________________________________________
Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us


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