Marc Hughes


Home
Blog
Twitter
LinkedIn
GitHub
about
I am a developer from a bit west of Boston.

Detecting whether running in ADL vs. installed AIR

02 Mar 2008

I noticed something while implementing the solution I talked about yesterday for dealing with self-signed vs. CA signed AIR apps.


The publisherId field is a blank string when running from within ADL.  It's an easy way to detect an installed AIR version vs. a version running within the debugger or just directly using ADL.  

I haven't really needed it so I haven't searched the docs.  There might be an explicit way to detect that scenario in the AIR api (feel free to comment and point it out), but if not and you need it, there you go.