How to invoke an AIR native installer app (EXE,DMG, etc) from browser - air

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?

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.

Related

AIR Google Play Services library classes missing apk

I am working on a test app to test an ane I have built with Google Play Services included. I had things working fine, but recently I updated the version of the Google Play Services library I was using, and now when I built the project in Adobe Flash CC, it seems to be stripping out the Google Play Services classes from the apk. When I decompile the apk I can see they are missing. When I put back the old version of GPlay, I can see it doesn't strip them out.
This post mentions a tool within the AIR needs updating (dx.jar) and this post seems to have the same message. I did update that file but it did not fix the issue.
Thanks!
The problem will be with the AIR SDK. You need to update the dx.jar in your AIR SDK, I've logged an issue with Adobe about this but they haven't updated the build tools as yet so we have to do it manually:
Have a look here for the details: http://airnativeextensions.com/knowledgebase/tutorial/5
It's important that you have a recent version of the Android SDK installed and updated for this to work.
Also rather than packaging the Google Play Libraries into your ANE I suggest you use a shared ANE, like this one:
https://github.com/distriqt/ANE-googleplayservices
Otherwise you can cause conflicts with other ANE's that use the Google Play Library.

Do users have to install Air on their phones to run air app?

I'm going to use adobe air to create an app. Do users have to install air first ? Also can it be bundled within the app itself as just one easy install?
You can package app as Captivate Runtime, hence no need to install Air at all.
http://help.adobe.com/en_US/air/build/WSfffb011ac560372f709e16db131e43659b9-8000.html
http://www.adobe.com/de/products/air/faq.html#Licensing:
"No, the Adobe AIR free distribution agreement does not allow you to distribute AIR from your website. You must direct visitors to the download center on Adobe.com. To easily link to Adobe.com, we provide Adobe AIR buttons that you can display on your site. If you would prefer not to direct users to Adobe.com, AIR provides a feature called Seamless Install that allows AIR to be installed as part of the application installation process."

Flash Builder fail to export release Build

I am having this desktop project which contains a native extension, when I run it there is absolutely no problem, and the native extension works fine,
But when I try to export a release build It shows this error message "Native extensions are being used in the project but are not supported by the AIR package type. Runtime issues can occur."
Flash Builder 4.6, Windows 7 x64
I have seen some answers, saying it's a bug on 4.6, so I tried on 4.7 and still having the same error
To use ANEs on the desktop, you need to publish the app as a native installer rather than an AIR installer.
On the first page of the publish wizard there is an option "Export as:" - select "Signed native installer".
You will also need to amend the app descriptor file to include the extended desktop as a profile:
<supportedProfiles>extendedDesktop</supportedProfiles>

TideSDK: Getting the Hello World example app to work

I'm on Windows 7 64bit and I'm following the Getting Started Tutorial. So far I've:
Downloaded TideSDK-1.3.1-beta-win-x86.zip
Extracted the 3 folders it contains (modules, runtime, and sdk) to C:/ProgramData/TideSDK/
Downloaded and installed Imagemagick
Downloaded and installed Wix 3.0
Downloaded and installed TideSDK-Developer-1.4.2-win-x86.msi
Cloned using Git: https://github.com/TideSDK/TideSDK-HelloWorld
Opened TideSDK Developer tool.
Clicked "Import Project" and selected the cloned Git repository, hit OK. (Screenshot)
Clicked "Test & Package" tab, and then clicked "Launch App" button. (Screenshot)
TideSDK Developer tool says "Preparing to package and launch desktop app. One moment..." but it never does do anything beyond that. The tutorial says I should see this, but I don't.
There are no errors anywhere that I can see. What can I do to get this Hello World app working?
I was not able to get TideSDK to work. However I found something that worked even better: node-webkit.
"node-webkit is an app runtime based on Chromium and node.js. You can write native apps in HTML and Javascript with node-webkit. It also lets you to call Node.js modules directly from DOM and enables a new way of writing native applications with all Web technologies."
https://github.com/rogerwang/node-webkit

Why does AIR badge always say 'install' when I have already installed the AIR application?

I have developed an Adobe AIR application which users install and launch from my web page. I use the install badge to install the AIR app if it is not already installed on the users computer. Before I had the app signed this install only happened if the AIR app was not already installed, once it had been installed the AIR app would be launched from the install badge rather than being installed again.
Since digitally signing the AIR app with my thawte signature the AIR badge keeps trying to install it even if it already exists and I get the message "The same version of the application you opened already exists on this system. Would you like to run the version already installed?"
It seems that the badge is not detecting the already installed version.
Have I missed a step when i published the signed version ( i realise that technically i always had a signed version it was just a self-signed version ) maybe I need to update the badge with the new signature or something?
cheers
I was using Adobe AIR version 1.5 and my new certificate generated a new publisher ID which I had to update in my badge.swf. Once I had added the new publisher Id to the badge.swf the install only happened once then subsequent clicks on the badge would launch the app as expected.