Re: [flexcoders] Re: How to run another air application from air application

2009-08-13 Thread Tom Chiverton
On Thursday 13 Aug 2009, vladakg85 wrote:
> Yes, but I don;t want to use framework. I have to make manual update.

By writing your own framework ? Why bother... ? I don't see you having any 
particularly odd requirements.

-- 
Helping to autoschediastically deploy IPOs as part of the IT team of the 
year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

[flexcoders] Re: How to run another air application from air application

2009-08-13 Thread vladakg85
No, download goes ok, if I run file.air manually update is OK. Old version is 
replaced with new.

This is how I get file:

urlStream.addEventListener(Event.COMPLETE, loaded);
urlStream.load(urlReq);

private function loaded(event:Event):void
{
urlStream.readBytes(fileData, 
0, urlStream.bytesAvailable);
writeAirFile();
}

private function writeAirFile():void
{

file=File.applicationStorageDirectory.resolvePath("xyz.air");
var fileStream:FileStream=new 
FileStream();
fileStream.open(file, 
FileMode.WRITE);
fileStream.writeBytes(fileData, 
0, fileData.length);
fileStream.close();
trace("The AIR file is 
written.");

Alert.show("The AIR file is 
written.");

var 
fileSpecialToInstallUpdate:File=new File();
fileSpecialToInstallUpdate=file;


var updater:Updater = new 
Updater();
var airFile:File = 
fileSpecialToInstallUpdate;
updater.update(airFile, 
updateVersionName.text); 




}

--- In flexcoders@yahoogroups.com, Ian Thomas  wrote:
>
> On Thu, Aug 13, 2009 at 11:44 AM, vladakg85 wrote:
> >
> >
> > Yes, but I don;t want to use framework. I have to make manual update. I have
> > methods that check if there is new version on server,manually download new
> > version from server, and manually run installer, but I recived this message.
> >
> > This application cannot be installed because this installer has been
> > mis-configured. Please contact the application author for assistance.
> 
> Does the 0.2 .air file on the _server_ actually work properly when you
> try to manually install it? If no, there's your problem right there.
> :-)
> 
> Does the 0.2 downloaded .air file actually work properly when you try
> to manually install it? If not, the download has gone wrong (nothing
> to do with the update framework).
> 
> It the second case is true, try looking at the .air file contents in a
> text editor - does it just contain some HTTP or PHP error data or
> something? If a text editor doesn't reveal the answer, try a HTTP
> monitor such as Charles to see if anything odd is going on with the
> request/response. And try a byte-editor compare between your server
> .air file and the downloaded .air file.
> 
> If the downloaded file _does_ work properly when manually installed,
> then I'm afraid I don't know what's going on - would need more
> context/test files.
> 
> HTH,
>Ian
>




Re: [flexcoders] Re: How to run another air application from air application

2009-08-13 Thread Ian Thomas
On Thu, Aug 13, 2009 at 11:44 AM, vladakg85 wrote:
>
>
> Yes, but I don;t want to use framework. I have to make manual update. I have
> methods that check if there is new version on server,manually download new
> version from server, and manually run installer, but I recived this message.
>
> This application cannot be installed because this installer has been
> mis-configured. Please contact the application author for assistance.

Does the 0.2 .air file on the _server_ actually work properly when you
try to manually install it? If no, there's your problem right there.
:-)

Does the 0.2 downloaded .air file actually work properly when you try
to manually install it? If not, the download has gone wrong (nothing
to do with the update framework).

It the second case is true, try looking at the .air file contents in a
text editor - does it just contain some HTTP or PHP error data or
something? If a text editor doesn't reveal the answer, try a HTTP
monitor such as Charles to see if anything odd is going on with the
request/response. And try a byte-editor compare between your server
.air file and the downloaded .air file.

If the downloaded file _does_ work properly when manually installed,
then I'm afraid I don't know what's going on - would need more
context/test files.

HTH,
   Ian


[flexcoders] Re: How to run another air application from air application

2009-08-13 Thread vladakg85
Yes, but I don;t want to use framework. I have to make manual update. I have 
methods that check if there is new version on server,manually download new 
version from server, and manually run installer, but I recived this message.

This application cannot be installed because this installer has been 
mis-configured. Please contact the application author for assistance. 

--- In flexcoders@yahoogroups.com, Ian Thomas  wrote:
>
> On Thu, Aug 13, 2009 at 11:07 AM, vladakg85 wrote:
> >
> >
> > Hi, you help me a lot, but now I have some strange problem:
> >
> > This application cannot be installed because this installer has been
> > mis-configured. Please contact the application author for assistance.
> 
> If you're having trouble rolling your own updater, perhaps you should
> consider using the Air Update Framework which is supplied with the
> Flex SDK?
> 
> There's information here:
> http://www.adobe.com/devnet/air/articles/air_update_framework.html
> http://blog.everythingflex.com/2008/08/01/air-update-framework/
> 
> HTH,
>Ian
>




Re: [flexcoders] Re: How to run another air application from air application

2009-08-13 Thread Ian Thomas
On Thu, Aug 13, 2009 at 11:07 AM, vladakg85 wrote:
>
>
> Hi, you help me a lot, but now I have some strange problem:
>
> This application cannot be installed because this installer has been
> mis-configured. Please contact the application author for assistance.

If you're having trouble rolling your own updater, perhaps you should
consider using the Air Update Framework which is supplied with the
Flex SDK?

There's information here:
http://www.adobe.com/devnet/air/articles/air_update_framework.html
http://blog.everythingflex.com/2008/08/01/air-update-framework/

HTH,
   Ian


[flexcoders] Re: How to run another air application from air application

2009-08-13 Thread vladakg85
Hi, you help me a lot, but now I have some strange problem:

This application cannot be installed because this installer has been 
mis-configured. Please contact the application author for assistance.

I make one relase 0.0.1. and install on client.

I make new relase 0.0.2.

I put new relase on server, also I put descriptor file on the server 0.0.2.

I call method to download this new version. Ok.
In here updater.update(airFile, updateVersionName.text); 

updateVersionName.text is number of new version 0.0.2.

and it still show this error.

So:
Certificates are the same.
Version on release config and descriptor on server are the same.
Client config is lower then on the server and there is still error.


--- In flexcoders@yahoogroups.com, Ian Thomas  wrote:
>
> 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 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");
> >
> >
>