Adobe Air Version Checker
So I had a bit of an annoying morning today. I went to update from AIR 1.5.2 to the latest release (1.5.3). The process didn’t go so smoothly. Long story short the updater would just hang up and sit there. I tried uninstalling 1.5.2 to get a fresh version of 1.5.3 rather than an update. No luck, the uninstaller wouldn’t work. I kept getting error messages about possibly not being an admin on my machine. Not true, I am the admin…. So what to do… Looking around the interwebz, it doesn’t seem like others are having the same trouble.
I checked permissions, restarted. Tried again, no luck. Tried again, and what? It tells me that I already have 1.5.3 installed. Huh? On which of the failed attempts did that happen? So I thought I would check the version number somehow. After a bit of googling. I found no easy way to verify the version number. You can do it programatically from within ActionScript. To do so you simply look at the following:
NativeApplication.nativeApplication.runtimeVersion
Looking at that property from within your IDE will tell you which version of the runtime you have in your installed SDK. To see which actual version of AIR is installed for AIR apps that you are running on the machine you need to execute the code within that environment.
So I built a quick little widget that displays the installed runtime version. Nothing too fancy here, just a utility. Feel free to install and use it via the badge installer below…
You can install the widget from the install badge above, or you can download the .air installer here
Jason Madsen is a web and mobile developer. These days he oversees bachelors programs in Web Design & Development and Mobile Development at a private university in Orlando, FL.
Hi Jason,
Thanks for that. It’s pretty handy.
It’s annoying there isn’t an easier way for people to check what their installed version number is.
Cheers,
Adrian
Adrian Parr
11 Dec 09 at 6:50 am
I hope you don’t mind, I’ve re-blogged about this on my site …
http://www.adrianparr.com/?p=122
Adrian Parr
11 Dec 09 at 7:04 am
I’m glad someone else found it usefull. Thanks for the mention
jason
11 Dec 09 at 7:36 am
if you don’t mind using undocumented features, you can simply use this from Flash Player, without making AIR app:
import adobe.utils.ProductManager;
var mgr:ProductManager = new ProductManager(“airappinstaller”);
if(mgr.installed){
trace(mgr.installedVersion);
}
DL1t
11 Dec 09 at 1:21 pm
Very cool. I remember now running into the Product Manager a while back while looking into AIR install badges, but never took the time to investigate further. Thanks for the comment.
jason
11 Dec 09 at 4:17 pm
Thanks Jason. I found this useful little Adobe knowledgebase article, which gives you a way to check the version of AIR on Mac and Linus systems:
http://kb2.adobe.com/cps/407/kb407625.html
I can’t find anything similar for Windows.
Chris
18 Jan 10 at 4:13 pm
@Chris Nice find. I hadn’t seen that article, thanks for the link. Jason.
jason
18 Jan 10 at 5:34 pm
Thanks for this util Jason.
Mike
14 Jul 10 at 8:31 am
Funny, I was happy to find this, then I realized that simply the act of starting to install it did enough. Windows 7 verifies that “adobe air 2.5.1″ can make a change to the system. BOOM. Cancel install, information already provided haha.
Good on you for putting this out though. Helps if you need to check it more than once in the lifetime of your desktop.
Cody
4 Dec 10 at 6:44 pm
[...] Adobe AIR Version Checker | nothing yet | jason madsen. Has created a simple app that makes it easy for you to know what version of AIR you are running in case you are developing for multiple versions all the time (like I am). [...]
Adobe AIR Version Checker | Seando's Kitchen
20 Sep 11 at 1:45 pm