<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: WmAutoUpdate &#8211; a .NET Compact Framework auto-update library</title>
	<atom:link href="http://www.sebastianvogelsang.com/2009/09/23/wmautoupdate-a-net-compact-framework-auto-update-library/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sebastianvogelsang.com/2009/09/23/wmautoupdate-a-net-compact-framework-auto-update-library/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 09 Jul 2011 21:19:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Luis Galaz</title>
		<link>http://www.sebastianvogelsang.com/2009/09/23/wmautoupdate-a-net-compact-framework-auto-update-library/comment-page-1/#comment-152</link>
		<dc:creator>Luis Galaz</dc:creator>
		<pubDate>Mon, 20 Jun 2011 17:11:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastianvogelsang.com/?p=165#comment-152</guid>
		<description>Hi. Thanks for the wmautoupdate, it works perfectly except in the case that Mark Evans pointed out.
I am having the same problem. Wondering if you gave an answer for that question or, if not, maybe you have an idea?

I would really appreciate any comments since I am quite stuck with this problem.

Thanks again.</description>
		<content:encoded><![CDATA[<p>Hi. Thanks for the wmautoupdate, it works perfectly except in the case that Mark Evans pointed out.<br />
I am having the same problem. Wondering if you gave an answer for that question or, if not, maybe you have an idea?</p>
<p>I would really appreciate any comments since I am quite stuck with this problem.</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Evans</title>
		<link>http://www.sebastianvogelsang.com/2009/09/23/wmautoupdate-a-net-compact-framework-auto-update-library/comment-page-1/#comment-148</link>
		<dc:creator>Mark Evans</dc:creator>
		<pubDate>Wed, 05 Jan 2011 01:38:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastianvogelsang.com/?p=165#comment-148</guid>
		<description>Hi Sebastian

Thanks very much for making WmAutoUpdate available. I&#039;ve incorporated it into my current project and it works very nicely indeed!

I don&#039;t have a lot of experience with Windows programming and in particular events and threading so I&#039;m having a little trouble following the code. I&#039;ve got a problem that I can&#039;t seem to resolve. 

If I cause the application to crash half-way through updating it is supposed to recover by copying the backup version back into the main directory. This doesn&#039;t work because the exe file is &quot;locked&quot; by the operating system because it is currently in use. I can verify this is the case because I can&#039;t delete it using Windows Explorer either. The error details are:

System.IO.IOException was unhandled
  Message=&quot;IOException&quot;
  StackTrace:
       at System.IO.__Error.WinIOError(Int32 errorCode, String str)
       at System.IO.File.Move(String sourceFileName, String destFileName)
       at WmAutoUpdate.Updater.assertPreviousUpdate()
       at WmAutoUpdate.Updater..ctor(String url)

The error occurs on this line in Updater.assertPreviousUpdate():
File.Move(f, appPath + &quot;\\&quot; + getFilenameFromPath(f));

To be honest I&#039;m amazed that you were able to copy/delete the application exe file while it was running but I can see that the code manages to do this somehow when it updates the application. The problem is that it doesn&#039;t work when rolling back. Do I need to do it in another thread or something?

Thanks again.

Cheer
Mark</description>
		<content:encoded><![CDATA[<p>Hi Sebastian</p>
<p>Thanks very much for making WmAutoUpdate available. I&#8217;ve incorporated it into my current project and it works very nicely indeed!</p>
<p>I don&#8217;t have a lot of experience with Windows programming and in particular events and threading so I&#8217;m having a little trouble following the code. I&#8217;ve got a problem that I can&#8217;t seem to resolve. </p>
<p>If I cause the application to crash half-way through updating it is supposed to recover by copying the backup version back into the main directory. This doesn&#8217;t work because the exe file is &#8220;locked&#8221; by the operating system because it is currently in use. I can verify this is the case because I can&#8217;t delete it using Windows Explorer either. The error details are:</p>
<p>System.IO.IOException was unhandled<br />
  Message=&#8221;IOException&#8221;<br />
  StackTrace:<br />
       at System.IO.__Error.WinIOError(Int32 errorCode, String str)<br />
       at System.IO.File.Move(String sourceFileName, String destFileName)<br />
       at WmAutoUpdate.Updater.assertPreviousUpdate()<br />
       at WmAutoUpdate.Updater..ctor(String url)</p>
<p>The error occurs on this line in Updater.assertPreviousUpdate():<br />
File.Move(f, appPath + &#8220;\\&#8221; + getFilenameFromPath(f));</p>
<p>To be honest I&#8217;m amazed that you were able to copy/delete the application exe file while it was running but I can see that the code manages to do this somehow when it updates the application. The problem is that it doesn&#8217;t work when rolling back. Do I need to do it in another thread or something?</p>
<p>Thanks again.</p>
<p>Cheer<br />
Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Entega denksanstösse</title>
		<link>http://www.sebastianvogelsang.com/2009/09/23/wmautoupdate-a-net-compact-framework-auto-update-library/comment-page-1/#comment-135</link>
		<dc:creator>Entega denksanstösse</dc:creator>
		<pubDate>Tue, 22 Dec 2009 17:52:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastianvogelsang.com/?p=165#comment-135</guid>
		<description>[...] http://www.sebastianvogelsang.com/2009/09/23/wmautoupdate-a-net-compact-framework-auto-update-librar [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.sebastianvogelsang.com/2009/09/23/wmautoupdate-a-net-compact-framework-auto-update-librar" rel="nofollow">http://www.sebastianvogelsang.com/2009/09/23/wmautoupdate-a-net-compact-framework-auto-update-librar</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

