﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum / StrataFrame Application Framework / WinForms (How do I?)  / Manual update of a clickonce deployment / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Fri, 21 Nov 2008 15:43:52 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Manual update of a clickonce deployment</title><link>http://forum.strataframe.net/Topic17023-7-1.aspx</link><description>Glad you got it going.</description><pubDate>Mon, 16 Jun 2008 09:42:32 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Manual update of a clickonce deployment</title><link>http://forum.strataframe.net/Topic17023-7-1.aspx</link><description>This works:&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;waitWindow1.ShowWaitWindow();&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;ApplicationDeployment&lt;/FONT&gt;&lt;FONT size=2&gt; ad = &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;ApplicationDeployment&lt;/FONT&gt;&lt;FONT size=2&gt;.CurrentDeployment;&lt;BR&gt;ad.Update();&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;Application&lt;/FONT&gt;&lt;FONT size=2&gt;.Restart();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;For some reason, calling HideWaitWindow() bothers the application restart sequence.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;:cool:&lt;BR&gt;Bill&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Sat, 14 Jun 2008 10:51:10 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Manual update of a clickonce deployment</title><link>http://forum.strataframe.net/Topic17023-7-1.aspx</link><description>Here is the code snippet:&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;waitWindow1.ShowWaitWindow();&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;ApplicationDeployment&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; ad = &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;ApplicationDeployment&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;.CurrentDeployment;&lt;BR&gt;&lt;/FONT&gt;ad.Update();&lt;BR&gt;waitWindow1.HideWaitWindow();&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;Application&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;.Restart();&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;The anomaly only appeared after I decided to throw in a WaitWindow for aesthetic purposes.  I removed the wait window and it works fine...no message box.  Like this:&lt;/P&gt;&lt;P&gt;&lt;FONT color=#2b91af size=2&gt;ApplicationDeployment&lt;/FONT&gt;&lt;FONT size=2&gt; ad = &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;ApplicationDeployment&lt;/FONT&gt;&lt;FONT size=2&gt;.CurrentDeployment;&lt;BR&gt;ad.Update();&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;Application&lt;/FONT&gt;&lt;FONT size=2&gt;.Restart();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;I'll see if I can work up a stack trace for you.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Thanks,&lt;BR&gt;Bill&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Thu, 12 Jun 2008 13:01:38 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Manual update of a clickonce deployment</title><link>http://forum.strataframe.net/Topic17023-7-1.aspx</link><description>Well, something is being referenced that is already disposed.  I would need more details before I could give you any type of direction, stack-trace, etc.</description><pubDate>Thu, 12 Jun 2008 11:27:17 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>Manual update of a clickonce deployment</title><link>http://forum.strataframe.net/Topic17023-7-1.aspx</link><description>After my application is running, I have a timer that periodically checks for new updates.  When it finds that there are updates available, the application updates the status bar alerting the user to the new update.  The user can choose to update the application by simply clicking the menu item, "Help" - "Get Updates."  When they click that menu item, I throw up a WaitWindow (love these little guys) letting the user know that an update is in progress.  After the update is complete, I am hiding that WaitWindow, then I send the command to the application to restart.  Everything seems to be ok, except I get a small, standard Windows message box that is titled "MicroFour StrataFrame Base" and a message that says "Disposed..."  The application restarts just fine, but this message box hangs around until I click the OK button.  Looks like there is no other damage anywhere.  Why is this message box popping up?  Can I do anything about this?  Is it related to the WaitWindow somehow?&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR&gt;Bill</description><pubDate>Thu, 12 Jun 2008 11:25:12 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item></channel></rss>