<?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: Adding &#8220;Check for update&#8221; feature to your C# application</title>
	<atom:link href="http://themech.net/2008/05/adding-check-for-update-option-in-csharp/feed/" rel="self" type="application/rss+xml" />
	<link>http://themech.net/2008/05/adding-check-for-update-option-in-csharp/</link>
	<description>Python, software development, stock exchange, C#</description>
	<lastBuildDate>Tue, 06 Mar 2012 14:20:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: mech</title>
		<link>http://themech.net/2008/05/adding-check-for-update-option-in-csharp/comment-page-1/#comment-48775</link>
		<dc:creator>mech</dc:creator>
		<pubDate>Fri, 18 Nov 2011 10:21:50 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=8#comment-48775</guid>
		<description>Matthew, I&#039;m not sure if you are protecting the xml file containing the newest version information or the installer itself. Anyway, you should pass the credentials to the reader. In case of the xml file, here is the example: http://msdn.microsoft.com/en-us/library/47as68k4%28v=vs.71%29.aspx. And here is the basic authentication for the WebRequest (used to dowload the installer: http://www.ie-soft.de/blog/PermaLink,guid,11609e8d-e0fc-41f4-83a2-6e8ea46339f6.aspx). Those topic are not covered by this tutorial in order to keep it simple. Securing the installer or version info with basic auth isn&#039;t a common thing. The downside is that you have to hardcode the credentials in your app. And when someone is using a proxy, he can intercept the request and response, so it&#039;s not secure.</description>
		<content:encoded><![CDATA[<p>Matthew, I&#8217;m not sure if you are protecting the xml file containing the newest version information or the installer itself. Anyway, you should pass the credentials to the reader. In case of the xml file, here is the example: <a href="http://msdn.microsoft.com/en-us/library/47as68k4%28v=vs.71%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/47as68k4%28v=vs.71%29.aspx</a>. And here is the basic authentication for the WebRequest (used to dowload the installer: <a href="http://www.ie-soft.de/blog/PermaLink,guid,11609e8d-e0fc-41f4-83a2-6e8ea46339f6.aspx" rel="nofollow">http://www.ie-soft.de/blog/PermaLink,guid,11609e8d-e0fc-41f4-83a2-6e8ea46339f6.aspx</a>). Those topic are not covered by this tutorial in order to keep it simple. Securing the installer or version info with basic auth isn&#8217;t a common thing. The downside is that you have to hardcode the credentials in your app. And when someone is using a proxy, he can intercept the request and response, so it&#8217;s not secure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew</title>
		<link>http://themech.net/2008/05/adding-check-for-update-option-in-csharp/comment-page-1/#comment-46803</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Thu, 10 Nov 2011 04:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=8#comment-46803</guid>
		<description>Mech,

First of all, thank you so much for the tutorial. It will make my apps much more manageable.

I have one question:
The place where I store my updated files is secured with an htaccess password. Is there a was to incorporate that securability in this tutorial?</description>
		<content:encoded><![CDATA[<p>Mech,</p>
<p>First of all, thank you so much for the tutorial. It will make my apps much more manageable.</p>
<p>I have one question:<br />
The place where I store my updated files is secured with an htaccess password. Is there a was to incorporate that securability in this tutorial?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhu Nair</title>
		<link>http://themech.net/2008/05/adding-check-for-update-option-in-csharp/comment-page-1/#comment-13157</link>
		<dc:creator>Madhu Nair</dc:creator>
		<pubDate>Thu, 28 Oct 2010 10:49:21 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=8#comment-13157</guid>
		<description>Hi Mech,

Yours was an Excellent Article. Thank you so much.</description>
		<content:encoded><![CDATA[<p>Hi Mech,</p>
<p>Yours was an Excellent Article. Thank you so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mech</title>
		<link>http://themech.net/2008/05/adding-check-for-update-option-in-csharp/comment-page-1/#comment-10063</link>
		<dc:creator>mech</dc:creator>
		<pubDate>Tue, 10 Aug 2010 08:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=8#comment-10063</guid>
		<description>Steve,
Your C# compiler seems to be more strict :) Please try initializing the variable before the try...finally block like this:
XmlTextReader reader = null;</description>
		<content:encoded><![CDATA[<p>Steve,<br />
Your C# compiler seems to be more strict :) Please try initializing the variable before the try&#8230;finally block like this:<br />
XmlTextReader reader = null;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://themech.net/2008/05/adding-check-for-update-option-in-csharp/comment-page-1/#comment-9581</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sat, 24 Jul 2010 14:49:55 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=8#comment-9581</guid>
		<description>I get a error here:

finally
            {
                if (reader != null) reader.Close();
            }

It says &quot;Error use of unsigned local variable &quot;reader&quot;</description>
		<content:encoded><![CDATA[<p>I get a error here:</p>
<p>finally<br />
            {<br />
                if (reader != null) reader.Close();<br />
            }</p>
<p>It says &#8220;Error use of unsigned local variable &#8220;reader&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge Sierra</title>
		<link>http://themech.net/2008/05/adding-check-for-update-option-in-csharp/comment-page-1/#comment-8316</link>
		<dc:creator>Jorge Sierra</dc:creator>
		<pubDate>Mon, 26 Apr 2010 19:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=8#comment-8316</guid>
		<description>Well, I did some test and it works great.
  Let me include it on my project.</description>
		<content:encoded><![CDATA[<p>Well, I did some test and it works great.<br />
  Let me include it on my project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miliu</title>
		<link>http://themech.net/2008/05/adding-check-for-update-option-in-csharp/comment-page-1/#comment-7564</link>
		<dc:creator>miliu</dc:creator>
		<pubDate>Wed, 03 Mar 2010 15:10:53 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=8#comment-7564</guid>
		<description>Thanks for the nice article. I found it when I try to make VS publishing and CheckForUpdate work together. Do you have any thought on that?

By the way, on parsing out the version info from the xml file, it would be much easier using XPath. e.g.
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(xmlUrl);
Version version = new Version(xmlDoc.SelectSingleNode(&quot;/ourfancyapp/version&quot;).InnerText);
string url = xmlDoc.SelectSingleNode(&quot;/ourfancyapp/url&quot;).InnerText;</description>
		<content:encoded><![CDATA[<p>Thanks for the nice article. I found it when I try to make VS publishing and CheckForUpdate work together. Do you have any thought on that?</p>
<p>By the way, on parsing out the version info from the xml file, it would be much easier using XPath. e.g.<br />
XmlDocument xmlDoc = new XmlDocument();<br />
xmlDoc.Load(xmlUrl);<br />
Version version = new Version(xmlDoc.SelectSingleNode(&#8220;/ourfancyapp/version&#8221;).InnerText);<br />
string url = xmlDoc.SelectSingleNode(&#8220;/ourfancyapp/url&#8221;).InnerText;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fullmetal</title>
		<link>http://themech.net/2008/05/adding-check-for-update-option-in-csharp/comment-page-1/#comment-6994</link>
		<dc:creator>Fullmetal</dc:creator>
		<pubDate>Mon, 25 Jan 2010 19:15:49 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=8#comment-6994</guid>
		<description>I used this code along with a downloader request code, and now the application checks the XML, and if there is an update, will ask if its OK to download it. it will then download it and install the Update. I am planning on adding a &quot;update from USB drive&quot; option that will check the drive for the XML file, and if the version is a newer one, install the update package from the USB drive.</description>
		<content:encoded><![CDATA[<p>I used this code along with a downloader request code, and now the application checks the XML, and if there is an update, will ask if its OK to download it. it will then download it and install the Update. I am planning on adding a &#8220;update from USB drive&#8221; option that will check the drive for the XML file, and if the version is a newer one, install the update package from the USB drive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mech</title>
		<link>http://themech.net/2008/05/adding-check-for-update-option-in-csharp/comment-page-1/#comment-6935</link>
		<dc:creator>mech</dc:creator>
		<pubDate>Tue, 19 Jan 2010 11:38:19 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=8#comment-6935</guid>
		<description>Hello,

@OverTech: Yes, indeed, HttpWebRequest gives you more tcp/ip control than XmlTextReader does. I&#039;ve checked your code snippet and it seems fine to be, well done :)

@Ranhiru: You should host two files: the XML and your installer for the new version, so users can download it. Luckily there are some free web hosting services that allow you to do so.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>@OverTech: Yes, indeed, HttpWebRequest gives you more tcp/ip control than XmlTextReader does. I&#8217;ve checked your code snippet and it seems fine to be, well done :)</p>
<p>@Ranhiru: You should host two files: the XML and your installer for the new version, so users can download it. Luckily there are some free web hosting services that allow you to do so.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ranhiru</title>
		<link>http://themech.net/2008/05/adding-check-for-update-option-in-csharp/comment-page-1/#comment-6902</link>
		<dc:creator>Ranhiru</dc:creator>
		<pubDate>Sat, 16 Jan 2010 14:15:10 +0000</pubDate>
		<guid isPermaLink="false">http://themech.net/?p=8#comment-6902</guid>
		<description>This is really interesting!!! Just what i was looking for :D
I was really keen on using ClickOnce but this is much much more easy and neat! I just have to host the XML file somewhere :D

Thanx a lot :) :)</description>
		<content:encoded><![CDATA[<p>This is really interesting!!! Just what i was looking for :D<br />
I was really keen on using ClickOnce but this is much much more easy and neat! I just have to host the XML file somewhere :D</p>
<p>Thanx a lot :) :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

