1
votes

I'm looking at this Howto:

http://livedocs.adobe.com/flex/3/html/help.html?content=distributing_apps_3.html#1036176

But I cannot get it to work with a Native installer application. These are .EXE/.DMG AIR apps that are downloaded and installed, NOT .air apps installed by badge.swf. I need to be able to do a browser invocation with a few additional flashvars set.

I already tried to modify the badge.swf file by got many compile errors in FlashBuilder 4.5

Is there an online example of how to do this?

1

1 Answers

1
votes

The AIR installer badge is intended to be used in the situation where the user has Flash installed, but may not have AIR installed. When the user clicks on the badge to install the AIR application, the AIR runtime is first downloaded and installed if necessary, and then the application is installed.

There is no reason to use the badge with a packaged native installer because the installer will download and install the AIR runtime if necessary before installing the application.

You can create a SWF which looks like a badge and downloads the native installer using a FileReference. There is however no way to execute the installer automatically after it has downloaded as doing so would present serious security risks.

The best course of action is to present clear instructions to the user on how to download and install the application using the native installer.