﻿<?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 - V1 » WinForms (How do I?)  » Manual update of a clickonce deployment</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 07 Apr 2026 01:49:15 GMT</lastBuildDate><ttl>20</ttl><item><title>Manual update of a clickonce deployment</title><link>http://forum.strataframe.net/FindPost17023.aspx</link><description>After my application is running, I have a timer that periodically checks for new updates.&amp;nbsp; When it finds that there are updates available, the application updates the status bar alerting the user to the new update.&amp;nbsp; The user can choose to update the application by simply clicking the menu item, "Help" - "Get Updates."&amp;nbsp; 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.&amp;nbsp; After the update is complete, I am hiding that WaitWindow, then I send the command to the application to restart.&amp;nbsp; Everything seems to be ok, except I get a small, standard&amp;nbsp;Windows message box that is titled "MicroFour StrataFrame Base" and a message that says "Disposed..."&amp;nbsp; The application restarts just fine, but this message box hangs around until I click the OK button.&amp;nbsp; Looks like there is no other damage anywhere.&amp;nbsp; Why is this message box popping up?&amp;nbsp; Can I do anything about this?&amp;nbsp; Is it related to the WaitWindow somehow?&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR&gt;Bill</description><pubDate>Mon, 16 Jun 2008 09:42:32 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Manual update of a clickonce deployment</title><link>http://forum.strataframe.net/FindPost17090.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/FindPost17060.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/FindPost17025.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.&amp;nbsp; I&amp;nbsp;removed&amp;nbsp;the wait window and it works fine...no message box.&amp;nbsp; 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/FindPost17024.aspx</link><description>Well, something is being referenced that is already disposed.&amp;nbsp; 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></channel></rss>