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 [email protected], Ian Thomas <i...@...> wrote:
>
> On Thu, Aug 13, 2009 at 11:44 AM, vladakg85<vladak...@...> 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
>


Reply via email to