<?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: How to restart an AIR application from code</title>
	<atom:link href="http://www.hufkens.net/2009/03/how-to-restart-an-air-application-from-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hufkens.net/2009/03/how-to-restart-an-air-application-from-code/</link>
	<description>{Technology Enthusiast &#38; Developer}</description>
	<lastBuildDate>Thu, 19 Jan 2012 21:46:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: SnakeMedia</title>
		<link>http://www.hufkens.net/2009/03/how-to-restart-an-air-application-from-code/comment-page-1/#comment-2725</link>
		<dc:creator>SnakeMedia</dc:creator>
		<pubDate>Thu, 19 Jan 2012 21:46:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.hufkens.net/?p=447#comment-2725</guid>
		<description>ANd i have been fixed for Flex 4.6 SDK

Please do not forget for Application into FlexGlobals replacement!!!!

Look like this:
Code:
&lt;code&gt;/**
 * 
 * Reboot of Air App
 * 
 */
package
{
	import adobe.utils.ProductManager;
	
	import flash.desktop.NativeApplication;
	
	import mx.core.FlexGlobals;
	import spark.components.WindowedApplication;

	public function Reboot():void
	{
		var app:WindowedApplication = WindowedApplication(FlexGlobals.topLevelApplication);
		
		var mgr:ProductManager = new ProductManager(&quot;airappinstaller&quot;);
		mgr.launch(&quot;-launch &quot;+app.nativeApplication.applicationID+&quot; &quot;+app.nativeApplication.publisherID);
		app.close();
	}
}&lt;/code&gt;

If you are using Flex 4.6 than you just replace from &quot;Application&quot; to &quot;FlexGlobals&quot; It will work for restart. I have been testet this Application Air :)

Thanks SnakeMedia</description>
		<content:encoded><![CDATA[<p>ANd i have been fixed for Flex 4.6 SDK</p>
<p>Please do not forget for Application into FlexGlobals replacement!!!!</p>
<p>Look like this:<br />
Code:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:540px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/**<br />
&nbsp;* <br />
&nbsp;* Reboot of Air App<br />
&nbsp;* <br />
&nbsp;*/<br />
package<br />
{<br />
&nbsp; import adobe.utils.ProductManager;<br />
&nbsp; <br />
&nbsp; import flash.desktop.NativeApplication;<br />
&nbsp; <br />
&nbsp; import mx.core.FlexGlobals;<br />
&nbsp; import spark.components.WindowedApplication;<br />
<br />
&nbsp; public function Reboot():void<br />
&nbsp; {<br />
&nbsp; &nbsp; var app:WindowedApplication = WindowedApplication(FlexGlobals.topLevelApplication);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; var mgr:ProductManager = new ProductManager(&quot;airappinstaller&quot;);<br />
&nbsp; &nbsp; mgr.launch(&quot;-launch &quot;+app.nativeApplication.applicationID+&quot; &quot;+app.nativeApplication.publisherID);<br />
&nbsp; &nbsp; app.close();<br />
&nbsp; }<br />
}</div></div>
<p>If you are using Flex 4.6 than you just replace from &#8220;Application&#8221; to &#8220;FlexGlobals&#8221; It will work for restart. I have been testet this Application Air <img src='http://www.hufkens.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks SnakeMedia</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SnakeMedia</title>
		<link>http://www.hufkens.net/2009/03/how-to-restart-an-air-application-from-code/comment-page-1/#comment-2716</link>
		<dc:creator>SnakeMedia</dc:creator>
		<pubDate>Wed, 18 Jan 2012 18:57:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.hufkens.net/?p=447#comment-2716</guid>
		<description>WOW that is a nice trick!
For Windows Vista and 7 Version?
 Eh that is best idea but how does Adobe AIr work when i am starting into Administrative Right? If Air App writes regfile and starts process with powershell for regfile will write into registry database than Air App will restart - but it can not show Administrative Mode ( Yes or No ).

Thanks best regards SnakeMedia</description>
		<content:encoded><![CDATA[<p>WOW that is a nice trick!<br />
For Windows Vista and 7 Version?<br />
 Eh that is best idea but how does Adobe AIr work when i am starting into Administrative Right? If Air App writes regfile and starts process with powershell for regfile will write into registry database than Air App will restart &#8211; but it can not show Administrative Mode ( Yes or No ).</p>
<p>Thanks best regards SnakeMedia</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ceola Phomphithak</title>
		<link>http://www.hufkens.net/2009/03/how-to-restart-an-air-application-from-code/comment-page-1/#comment-1485</link>
		<dc:creator>Ceola Phomphithak</dc:creator>
		<pubDate>Thu, 08 Sep 2011 01:08:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.hufkens.net/?p=447#comment-1485</guid>
		<description>A cool blog post there mate . Thanks for it !</description>
		<content:encoded><![CDATA[<p>A cool blog post there mate . Thanks for it !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cbrown</title>
		<link>http://www.hufkens.net/2009/03/how-to-restart-an-air-application-from-code/comment-page-1/#comment-1337</link>
		<dc:creator>cbrown</dc:creator>
		<pubDate>Sun, 21 Aug 2011 19:42:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.hufkens.net/?p=447#comment-1337</guid>
		<description>Works for me on both osx 10.6.8 and windows 7 with an air app from flash pro using:

import flash.desktop.NativeApplication;
var mgr:ProductManager = new ProductManager(&quot;airappinstaller&quot;);
mgr.launch(&quot;-launch &quot; + NativeApplication.nativeApplication.applicationID + &quot; &quot; + NativeApplication.nativeApplication.publisherID);
NativeApplication.nativeApplication.exit();

UNLESS... an flvplayback component loads a video! After that, it will only close and not restart. I&#039;ve tried everything under the sun to destroy the video/component before the restart to no avail. Any suggestions are very appreciated, thanks.</description>
		<content:encoded><![CDATA[<p>Works for me on both osx 10.6.8 and windows 7 with an air app from flash pro using:</p>
<p>import flash.desktop.NativeApplication;<br />
var mgr:ProductManager = new ProductManager(&#8220;airappinstaller&#8221;);<br />
mgr.launch(&#8220;-launch &#8221; + NativeApplication.nativeApplication.applicationID + &#8221; &#8221; + NativeApplication.nativeApplication.publisherID);<br />
NativeApplication.nativeApplication.exit();</p>
<p>UNLESS&#8230; an flvplayback component loads a video! After that, it will only close and not restart. I&#8217;ve tried everything under the sun to destroy the video/component before the restart to no avail. Any suggestions are very appreciated, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cool</title>
		<link>http://www.hufkens.net/2009/03/how-to-restart-an-air-application-from-code/comment-page-1/#comment-995</link>
		<dc:creator>cool</dc:creator>
		<pubDate>Tue, 22 Feb 2011 02:15:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.hufkens.net/?p=447#comment-995</guid>
		<description>It works! I use Windows 7. 
Thank you so much!
I used &quot;
var app:WindowedApplication =
					WindowedApplication(FlexGlobals.topLevelApplication);&quot;</description>
		<content:encoded><![CDATA[<p>It works! I use Windows 7.<br />
Thank you so much!<br />
I used &#8221;<br />
var app:WindowedApplication =<br />
					WindowedApplication(FlexGlobals.topLevelApplication);&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Artim interactive &#187; Blog Archive &#187; Adobe, please fix Air for enterprise development</title>
		<link>http://www.hufkens.net/2009/03/how-to-restart-an-air-application-from-code/comment-page-1/#comment-954</link>
		<dc:creator>Artim interactive &#187; Blog Archive &#187; Adobe, please fix Air for enterprise development</dc:creator>
		<pubDate>Sat, 23 Oct 2010 17:41:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.hufkens.net/?p=447#comment-954</guid>
		<description>[...] solutions on the web but they don&#8217;t work an all platforms! For example the solution presented here is not working on windows but worked on the mac. We don&#8217;t need hacks but an Adobe [...]</description>
		<content:encoded><![CDATA[<p>[...] solutions on the web but they don&#8217;t work an all platforms! For example the solution presented here is not working on windows but worked on the mac. We don&#8217;t need hacks but an Adobe [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asuej28</title>
		<link>http://www.hufkens.net/2009/03/how-to-restart-an-air-application-from-code/comment-page-1/#comment-936</link>
		<dc:creator>Asuej28</dc:creator>
		<pubDate>Fri, 24 Sep 2010 00:08:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.hufkens.net/?p=447#comment-936</guid>
		<description>Excelente Maestro!!! Funcionó de peluches!!!

Gracias por el truco.</description>
		<content:encoded><![CDATA[<p>Excelente Maestro!!! Funcionó de peluches!!!</p>
<p>Gracias por el truco.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aanoud</title>
		<link>http://www.hufkens.net/2009/03/how-to-restart-an-air-application-from-code/comment-page-1/#comment-884</link>
		<dc:creator>Aanoud</dc:creator>
		<pubDate>Sat, 07 Aug 2010 16:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.hufkens.net/?p=447#comment-884</guid>
		<description>Hi I&#039;m afraid  with air 2.0 it only works on osx, not anymore on windows...
I Need real solid cross platform solution for this.

Any clues?

tnx,

Arnoud</description>
		<content:encoded><![CDATA[<p>Hi I&#8217;m afraid  with air 2.0 it only works on osx, not anymore on windows&#8230;<br />
I Need real solid cross platform solution for this.</p>
<p>Any clues?</p>
<p>tnx,</p>
<p>Arnoud</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Gates</title>
		<link>http://www.hufkens.net/2009/03/how-to-restart-an-air-application-from-code/comment-page-1/#comment-882</link>
		<dc:creator>Patrick Gates</dc:creator>
		<pubDate>Sun, 11 Jul 2010 22:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.hufkens.net/?p=447#comment-882</guid>
		<description>If this doesn&#039;t work, you can always encompass all your code in an init() function and then call it</description>
		<content:encoded><![CDATA[<p>If this doesn&#8217;t work, you can always encompass all your code in an init() function and then call it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lee</title>
		<link>http://www.hufkens.net/2009/03/how-to-restart-an-air-application-from-code/comment-page-1/#comment-368</link>
		<dc:creator>lee</dc:creator>
		<pubDate>Mon, 22 Jun 2009 20:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.hufkens.net/?p=447#comment-368</guid>
		<description>I just noticed the flashlog is catching many Error #2044 when it closes.</description>
		<content:encoded><![CDATA[<p>I just noticed the flashlog is catching many Error #2044 when it closes.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

