<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>WiX: Removing Files with Patches</title><link>http://blogs.msdn.com/b/pmarcu/archive/2009/05/20/wix-removing-files-with-patches.aspx</link><description>This post has moved here .</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: WiX: Removing Files with Patches</title><link>http://blogs.msdn.com/b/pmarcu/archive/2009/05/20/wix-removing-files-with-patches.aspx#9632001</link><pubDate>Wed, 20 May 2009 13:16:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9632001</guid><dc:creator>Peter Marcu</dc:creator><description>&lt;p&gt;Hmm, you may need to also add a seperate component which contains the RemoveFile entry rather than putting it in the same component in this case.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9632001" width="1" height="1"&gt;</description></item><item><title>re: WiX: Removing Files with Patches</title><link>http://blogs.msdn.com/b/pmarcu/archive/2009/05/20/wix-removing-files-with-patches.aspx#9631987</link><pubDate>Wed, 20 May 2009 13:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9631987</guid><dc:creator>Bowyer</dc:creator><description>&lt;p&gt;Yes, Peter, you are right. There are just warnings, the patch works normally. Thank you very much!&lt;/p&gt;
&lt;p&gt;But when there is only one file (KeyPath file) in the component, it can't work. I am still fighting for this problem. Heh, Heh.&lt;/p&gt;
&lt;p&gt;It's dangerous and difficult!&lt;/p&gt;
&lt;p&gt;Maybe I will back to disturb you! Thank you again!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9631987" width="1" height="1"&gt;</description></item><item><title>re: WiX: Removing Files with Patches</title><link>http://blogs.msdn.com/b/pmarcu/archive/2009/05/20/wix-removing-files-with-patches.aspx#9631812</link><pubDate>Wed, 20 May 2009 11:19:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9631812</guid><dc:creator>Peter Marcu</dc:creator><description>&lt;p&gt;It looks like you are fine on both warnings. You did add a RemoveFile entry in the component and you are not expecting to have any files in the patch so both warnings are ok.&lt;/p&gt;
&lt;p&gt;For the first one, that is a bug. It should detect that you did add a RemoveFile entry and not show the warning.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9631812" width="1" height="1"&gt;</description></item><item><title>re: WiX: Removing Files with Patches</title><link>http://blogs.msdn.com/b/pmarcu/archive/2009/05/20/wix-removing-files-with-patches.aspx#9631771</link><pubDate>Wed, 20 May 2009 10:46:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9631771</guid><dc:creator>Bowyer</dc:creator><description>&lt;p&gt;Hi, Peter:&lt;/p&gt;
&lt;p&gt;Thank you firstly!&lt;/p&gt;
&lt;p&gt;and I test as you said, but some exception.&lt;/p&gt;
&lt;p&gt;first, in the baseline wxs file:&lt;/p&gt;
&lt;p&gt;&amp;lt;Fragment&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;DirectoryRef Id=&amp;quot;SampleProductFolder&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Component Id=&amp;quot;SampleComponent&amp;quot; Guid=&amp;quot;C28843DA-EF08-41CC-BA75-D2B99D8A1983&amp;quot; DiskId=&amp;quot;1&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;File Id=&amp;quot;SampleFile&amp;quot; Name=&amp;quot;Sample.txt&amp;quot; Source=&amp;quot;.\$(var.Version)\Sample.txt&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;File Id=&amp;quot;classFile&amp;quot; &amp;nbsp;Name=&amp;quot;loadtest.class&amp;quot; Source=&amp;quot;.\$(var.Version)\loadtest.class&amp;quot; /&amp;gt; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;File Id=&amp;quot;SampleFileDel1&amp;quot; Name=&amp;quot;SampleDel1.txt&amp;quot; KeyPath=&amp;quot;no&amp;quot; Source=&amp;quot;.\$(var.Version)\SampleDel1.txt&amp;quot; /&amp;gt; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Component&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/DirectoryRef&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;/Fragment&amp;gt;&lt;/p&gt;
&lt;p&gt;Now, I want remove the SampleDel1.txt, the wxs is changed into:&lt;/p&gt;
&lt;p&gt;&amp;lt;Fragment&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;DirectoryRef Id=&amp;quot;SampleProductFolder&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Component Id=&amp;quot;SampleComponent&amp;quot; Guid=&amp;quot;C28843DA-EF08-41CC-BA75-D2B99D8A1983&amp;quot; DiskId=&amp;quot;1&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;File Id=&amp;quot;SampleFile&amp;quot; Name=&amp;quot;Sample.txt&amp;quot; Source=&amp;quot;.\$(var.Version)\Sample.txt&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;File Id=&amp;quot;classFile&amp;quot; &amp;nbsp;Name=&amp;quot;loadtest.class&amp;quot; Source=&amp;quot;.\$(var.Version)\loadtest.class&amp;quot; /&amp;gt; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;RemoveFile Id=&amp;quot;delSampleFileDel1&amp;quot; Name=&amp;quot;SampleDel1.txt&amp;quot; On=&amp;quot;install&amp;quot; /&amp;gt; &amp;nbsp;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Component&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/DirectoryRef&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;/Fragment&amp;gt;&lt;/p&gt;
&lt;p&gt;Then, candle, light, torch, pyro.&lt;/p&gt;
&lt;p&gt;At last I get a warning:&lt;/p&gt;
&lt;p&gt;C:\DevelopTools\WIX\WIX3.0\examples\patchexample\product10.wxs(29) : warning PYR&lt;/p&gt;
&lt;p&gt;O1095 : File 'SampleFileDel1' was removed from component 'SampleComponent'. Remo&lt;/p&gt;
&lt;p&gt;ving a file from a component will not result in the file being removed by a patc&lt;/p&gt;
&lt;p&gt;h. You should author a RemoveFile element in your component to remove the file f&lt;/p&gt;
&lt;p&gt;rom the installation if you want the file to be removed.&lt;/p&gt;
&lt;p&gt;C:\DevelopTools\WIX\WIX3.0\examples\patchexample\patch.wxs(12) : warning PYRO107&lt;/p&gt;
&lt;p&gt;9 : The cabinet 'RTM.cab' does not contain any files. &amp;nbsp;If this installation cont&lt;/p&gt;
&lt;p&gt;ains no files, this warning can likely be safely ignored. &amp;nbsp;Otherwise, please add&lt;/p&gt;
&lt;p&gt; files to the cabinet or remove it.&lt;/p&gt;
&lt;p&gt;May I get your help to find out the reason?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9631771" width="1" height="1"&gt;</description></item><item><title>WiX: Removing Files with Patches | ASP NET Hosting</title><link>http://blogs.msdn.com/b/pmarcu/archive/2009/05/20/wix-removing-files-with-patches.aspx#9631733</link><pubDate>Wed, 20 May 2009 10:13:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9631733</guid><dc:creator>WiX: Removing Files with Patches | ASP NET Hosting</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://asp-net-hosting.simplynetdev.com/wix-removing-files-with-patches/"&gt;http://asp-net-hosting.simplynetdev.com/wix-removing-files-with-patches/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9631733" width="1" height="1"&gt;</description></item></channel></rss>