AIR Install Badges
The AIR (né Apollo) beta release includes a number of great new features, including:
- Support for PDF
- Embedded SQLite
- Drag-and-drop
- Transparent HTML
...and more.
But I want to call attention to one of my favorite features: Install Badges. Yes, I'm biased because I worked on it. But if I didn't work on this stuff, this blog wouldn't be half so interesting, would it?
Want to see it in action? Browse to the AIR Sample Applications page and install away.
Wanted to make your own? Download the AIR SDK, which contains a sample badge in both compiled and source form.
Caveat: Embarrasingly, some debug code was left in the badge as it shipped in the beta SDK. (Well, it is a beta, after all.) So you may want to open the .fla just to remove that, even if you're not interested in further customization.
Comments
Hey Oliver,
I really like the AIR install process except of one thing:
The download time between the click on "Open" to when the install dialog appears doesn't show you any loading process. So if you have a slow connection or if the app is a 1MB+ download there's some time where nothing happens. This is quite confusing.
Can't you change that?
Posted by: Alex | June 20, 2007 04:33 AM
Yes, that delay before the window opens is a bug that I expect we'll address before the next release.
Posted by: Oliver Goldman | June 20, 2007 10:49 AM
Thanks ! I have already experienced that sexy installation !!!
Posted by: awflasher | July 4, 2007 07:20 PM
Hi Oliver,
I just have one question, how can i use install badge for my webapp . . where it automatically installs (or pop) the runtime?
Posted by: Ron | September 9, 2007 07:58 PM
Ron: The SDK includes documentation describing how to embed the install badge. You can use it from a web app by simply emitting the correct HTML to embed the badge.
Posted by: Oliver Goldman | September 10, 2007 11:43 AM
Hi. We are working with AIR and its great so far and npw...install questions! Could not find documentation so...
------------------------
1) What functionality does the System.Product class provide in addition to the "isInstalled()", "download()" and "launch()" methods?
2) Is there a way to run the "download()" and "launch()" silently?
Alternatively, what options, if any, are provided by the "air_b2_win_100107.exe" and by the "Adobe AIR Application Installer.exe"?
3) Is it possible to run them silently?
Thank you so much!!!
-Keith
Posted by: keith | October 31, 2007 01:00 PM
Keith: The System.Product API is officially unsupported and you have no reason to use it directly anyway, so I won't say anything more about it here.
We don't provide any way to silently install or launch anything from the browser. The horrible security implications of such a feature should be clear!
It is possible to run the installer for AIR itself silently if you pass it the "-silent" flag on the command line. Just to be clear, you can't do this from the browser. You can do it if you are running the installer yourself, i.e., from the command line. Also, please keep in mind that this command line flag isn't officially supported and could be removed, changed, etc. at any time.
Posted by: Oliver Goldman | October 31, 2007 09:37 PM
I am also interested in running the installer silently from command line, and the -silent switch definitely helps. I am curious to know whether the “AIR Application Installer” can also run silently, and if yes, how is it possible to send it options such as install directory, start menu shortcuts, etc.
By the way, the reason I am using a native installer and trying to embed AIR runtime and installation process into it is because my application needs to read registry keys. I wonder if AIR will support reading registry keys in the near future.
Thank you,
Izzy
Posted by: Izzy | November 1, 2007 07:50 AM
Izzy: No, we don't support running the application installer silently. I understand your use case and you're not alone in asking for this. That said, we've made a decision to focus on cross-platform capabilities in 1.0 and not on features like this that are tied to platform-specific native code.
We won't, for the same reasons, be adding access to the Windows registry any time soon.
Both of these requests may be included in some future release. Please use www.adobe.com/go/wish to request these and other features.
Posted by: Oliver Goldman | November 2, 2007 12:19 AM
Oliver,
I'm able to run the AdobeAIRInstaller.exe silently - works fine.
So what you're saying is that my ".air" file cannot be executed silently in anyway, correct?
Cheers.
Posted by: Kai | April 8, 2008 07:20 AM
Silent application install is supported for those who have signed up to redistribute the runtime. See also Mike Chamber's recent post on the subject.
regards,
Oliver
Posted by: Oliver Goldman | April 8, 2008 09:10 AM