开发者

Run AIR app without AIR runtime files

开发者 https://www.devze.com 2023-01-16 15:59 出处:网络
I\'ve made an AIR app with Flash Builder 4. Works great but I want to run the app witho开发者_StackOverflow中文版ut installing it. So..... when I install the app, I copy the files from program files a

I've made an AIR app with Flash Builder 4. Works great but I want to run the app witho开发者_StackOverflow中文版ut installing it. So..... when I install the app, I copy the files from program files and paste it on a CD and give it to somebody. He runs it on another computer without AIR runtime with as result that it doesn't work. How can I bypass this? Like some launcher/setup that installs AIR runtime for the client if it aint installed. If it is installed, run the AIR app.

Thanks.


Creating an AIR Badge would be a good option. The idea is you pass a link to the client, the AIR Badge check if AIR is installed. If it is, installs your app, otherwise installs AIR first.

Run AIR app without AIR runtime files

There's a pretty good AIR Badger tutorial on the Adobe Developer Connection site. AIR Badger is an AIR App Grant Skinner wrote to make the setup easier.

Also check out the new AIR Launchpad, which is another AIR app that helps you get started with all sort of AIR related functions, including install badge.

Run AIR app without AIR runtime files

Unfortunately the AIR Badger works online.

You cannot bypass AIR install. Maybe have a third party utility(batch script/etc.) that looks for air related files/.air filetype associations and based on that launches an AIR installer you supply on CD or the app itself.

On osx you have the mdls command that displays information about a file. You could check for kMDItemKind:

mdls -name kMDItemKind /path/to/yourApp.air

If it prints "com.adobe.air.InstallerPackage", then air should be installed, otherwise it will just print "Document".

There should be something similar for windows command prompt that checks registry file type associations. After you've done that check, install AIR first or just the app, depending on the result.

HTH

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号