When no keypath is specified, it uses the first resource in the component. In
your case it was the first file. In order to remove that file you need to
remove the entire component. Note, that if you remove a component, you have to
remove the entire feature. Removing a keypath file using a patch can be very
tricky...
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrice Lamarche
Sent: Wednesday, August 08, 2007 8:42 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] KeyPath problem
Hello,
I'm working with a patch. I receive this error
D:\Disk_X\Setup1.wxs(23) : error PYRO0243 : Component
'comment_protect_once.pl_1' has a changed keypath
. Patches cannot change the keypath of a component.
Here my wxs
<Component Id="comment_protect_once.pl_1"
Guid="{C7F7628E-A9A8-4498-88A2-07183672E8EE}">
<File Id="comment_protect_once.pl_1" Name="comment-protect-once.pl"
Source="x:\Versions\0.0.0\Tools\Scripts\Refactoring\comment-protect-once.pl" />
<File Id="remove_protect_once.pl_1" Name="remove-protect-once.pl" Source="
x:\Versions\0.0.0\\Tools\Scripts\Refactoring\remove-protect-once.pl" />
<File Id="rewrite_protect_once.pl_1" Name="rewrite-protect-once.pl" Source="
x:\Versions\0.0.0\\Tools\Scripts\Refactoring\rewrite-protect-once.pl" />
<File Id="set_namespace.pl_1" Name="set-namespace.pl" Source="
x:\Versions\0.0.0\\Tools\Scripts\Refactoring\set-namespace.pl" />
<File Id="update_ubinew.pl_1" Name="update-ubinew.pl" Source="
x:\Versions\0.0.0\\Tools\Scripts\Refactoring\update-ubinew.pl" />
</Component>
<Component Id="comment_protect_once.pl_1"
Guid="{C7F7628E-A9A8-4498-88A2-07183672E8EE}" >
<RemoveFile Id="comment_protect_once.pl_1" On="install"
Name="comment-protect-once.pl" />
<File Id="remove_protect_once.pl_1" Name="remove-protect-once.pl" Source
x:\Versions\0.0.1\Tools\Scripts\Refactoring\remove-protect-once.pl" />
<File Id="rewrite_protect_once.pl_1" Name="rewrite-protect-once.pl" Source="
x:\Versions\0.0.1\Tools\Scripts\Refactoring\rewrite-protect-once.pl" />
<File Id="set_namespace.pl_1" Name="set-namespace.pl" Source="
x:\Versions\0.0.1\Tools\Scripts\Refactoring\set-namespace.pl" />
<File Id="update_ubinew.pl_1" Name="update-ubinew.pl" Source="
x:\Versions\0.0.1\Tools\Scripts\Refactoring\update-ubinew.pl" />
</Component>
I tried with keypath=false every where to and still have the problem. I thought
when no keypath where specified, it use the directory.
Thanks
Best Regards,
Patrice Lamarche
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users