Take a look at the flash.desktop.Update class - call the update()
method on the AIR file in question rather than using URLLoader().

There's a code snippet that does what you want here:
http://livedocs.adobe.com/flex/3/html/help.html?content=updating_apps_1.html

HTH,
   Ian

On Wed, Aug 12, 2009 at 8:24 AM, vladakg85<vladak...@yahoo.com> wrote:
>
>
> I have one air application. Now I want to make custom update (no default, I
> want my component) and I made it to download new application version to my
> app folder now I need to install it, but I don't know how to invoke
> newVersion.air from action script code???
> I try with this but doesn't work:
>
> var req:URLRequest = new URLRequest("file:///c:\Documents and
> Settings\vvucetic.newVersion.air");
> var rld:URLLoader = new URLLoader();
> rld.load(req);
>
> fscommand("exec", "file:///c:\Documents and
> Settings\vvucetic.newVersion.air");
>
> 

Reply via email to