1 person found this helpful
Do you have any
special chars in the file names, dir inside your AIR file?
You can unzip the AIR file, and list all the files inside the AIR files to find out.
This problem should not have anything to do with your coding.
Thanks for your answer Tzeng. I have an old application called boolvisi and an air file called boolvisi.air which I know was compiled from the boolvisi app as I would have left the names the same like this. However I just compiled another air file from the boolvisi application and called it coolvisi and this gets the error when I try to install it. I've copied and pasted both the boolvis.air and coolvisi.air files and made them zip files to check out their contents. The strange thing is the boolvisi one is much smaller in size (by almost 10 meg) and only has a few images inside it whereas the coolvisi one contains tonnes of images. If an app is over 30meg and contains a lot of uneeded images will this cause it to be too nig or something?
1 person found this helpful
30meg is not a problem. Extra files are also not a problme.
What namespaces do you have in the app.xml file? If you use 1.5.3, you might have a problem to install if the older version has been installed.
You can create an install log by creating an .airappinstall.log file in your home directory. After installation, you can look at the log file.
It is very helpful to find out what is wrong with log file. Post the log file here would be helpful for others to figure out the problem.
Cheers I'll try that and post it up here soon.
Ok I'm on vista so I've made a copy of the app that's not working and pasted it in my main user directory which is Computer/C/Gaz
I then went into command prompt and type.airappinstall.log and pressed enter. I think I've done that the right way. What that produced was the following log:-
Starting app install of file:///C:/Users/Gaz/Documents/Flex%20Builder%203/Coolvision%20Interface%20-%20Final%20Ver sion/NonWorkingCoolvisi.air
UI SWF load is complete
Unpackaging to C:\Users\Gaz\AppData\Local\Temp\flaEE42.tmp
failed while unpackaging: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="invalid package signature" errorID=5022]
starting cleanup of temporary files
application installer exiting
Can anyone shed any light on what this means and how I could fix it? Thanks for any suggestions.
The error message means
there is an error in the code signing check process.
It could be the signing certificate is not valid. But since you can sign other good AIR files with the certificate, then this should not be the problem.
The other reason could be the AIR file is somehow not valid, such as corrupted. Consider you just package the AIR file, this should not be the problem.
Another cause could be you have special chars like " &" in your file name.
I've actually just managed to fix this problem. What it seemed to be was an image filename. The problem was the other day I was having out of memory errors when trying to run this particular app so decided to take all of the pngs (50+ of them) which I'd embedded in the app and convert them into jpgs to save space. The problem was when I changed the embedded images from pngs to jpgs in my application code I left all of the original png images in the images folder with the new jpegs which previously would not have been "read" by the installer hence they were all embedded so the only thing that would have been read was the application swf name in which they are embedded itself which was fine.
An image in this images folder was named m&s_small.png. I've renamed this image as mands_small.png and now it compiles fine. The reason I never noticed these images was as I said there were no errors previously but I presume this was because of them previously being embedded and I also presume that means that images that are embedded can be named anything including names containing "&" as they won't be read upon installation, essentially being contained within the swf file.
Thanks for all your help Tzeng my friend.
Good to see the problem gets fixed.