Adobe AIR update framework -- always creating a new desktop icon on update - apache-flex

I'm using the AIR update framework (ApplicationUpdaterUI), and whenever the user updates the application, a new desktop icon gets created (overwriting any existing desktop icon there). Is there a way to suppress this behaviour, or can someone suggest a workaround?
Here's the situation:
Our AIR app uses a separate bootstrapping application to launch some services before the AIR application launches, so it's important that the user does not run the AIR executable themselves. Our installer creates a desktop icon that points to the bootstrapping executable. When the user updates the application, it replaces our desktop icon with the AIR shortcut.

I don't think you can override the creation of the standard AIR icon..
Maybe you can configure your helper application as a windows service / unix daemon, launching it automatically on system startup?

Related

Open Console Application inside Unified Service Desk

I have a requirement where i need to open a Console Application inside Unified Service Desk v4.1.
The issue with me is I am able to open the console application inside Unified Service Desk, However I am unable to write anything inside it. The console application is just appearing as an image inside USD.
So, how can I open the console application inside Unified Service Desk and make the Console application work?
Console application is actually hosted using CCA application. The issue with these applications are once opened, then they become unresponsive.
1. Create a UII Windows Forms Adapter
2. Trigger the process and execute your console application
3. Using Win32.dll setParent Command, pull the application inside your Adapter and that would be it.
Hope this will help

Qt: Shut down the application when the user doesn't a supported OpenGL version

I use Qt 5.7 with Web Engine in my application. The application has thousands of users and for some of them the whole application crashes (with the classic Windows "app.exe has stopped working" dialog) when trying to load a webpage in my webview. Upon doing some digging, I discovered it crashes for users that don't have OpenGL 2+.
Is there a way to determine the user's OpenGL version and shut down the application (or write a message to them, I'd take care of that) if the version is not supported? I tried using glGetString(GL_VERSION), but that means including yet another QT library in an already not so small application.

Not able to convert applet to Jwrapper app

I have an applet project which loads sensor dlls and loads sensor gui in web page,using jwrapper i am able to build the project and create 2 files FutronicAppEmbed.js FutronicAppEmbed.html ,but when i am running this FutronicAppEmbed.html nothing is displayed in browser.Please help.
If you open the HTML file in a browser you won't see anything as it won't load properly but if you put all the files from your build folder on a web server and then load the FutronicAppEmbed.html page you will get a download button for the app appropriate to your operating system.
JWrapper is an alternative to applets though in that it is an app delivery system which allows you to do dynamic parameterisation (as you can with server-side generated parameters in applet pages), but its not a direct replacement for applets in that the app will load in the web page. Instead you will need to specify a standard java main method and load your app in a swing frame and JWrapper will launch that.

How to access local file system from Flex web application?

I'm trying to access local file system from Flex web application.
I know it is pretty difficult, but I think there must be a way. Is there a way that Flex app can use AIR components or maybe web application can call some AIR module in order to choose files and upload?
There is no direct way that a web based Flex/Flash application can access AIR based APIs. They aren't built into the Flash Player, but are rather extensions built into the AIR runtime. You can't access them directly because they aren't there.
If you have an AIR app installed on the user's local machine you can, in theory, use that app as a proxy with localConnection. That way the AIR app can access the file system directly, triggered by the browser based app. I'm not sure how user interaction would work, though.
If you have server software installed on the client machine, you can trigger file processing commands from Flex using RmoteObject/HTTPService/WebService commands. This wouldn't give the user any interaction ability and is not usually practical unless you have strong control over your client machines.
Either approach would present an app installation nightmare; which almost defeats the purpose of a browser based app in the first place.
You can use FileReference's methods to ask user to select files to open (load into flash, upload into server) or save (from server or bytes from flash).

How to debug Flex application under maven

I develop Flex-Java applications which is running under Apache Tomcat. I use Flex Builder plug-in for Eclipse as my IDE. My application consists of several libraries and modules. I manage all of them as a small maven (flex-mojos) projects.
Does anybody can share some ideas how to setup robust debuging enviroment?
I use Maven & Flexmojos from the command line and the Flash builder 4 plugin inside of Eclipse. In my project I also have a Java/BlazeDS backend I like to debug at the same time as the Flex client on occasion.
Here's what I do:
1) I used cargo to startup an instance of my Java backend that DOES NOT have the SWF or HTML wrapper in it.
2) I've created a "Web Application" debug launch configuration where the launch URL just points to a file (e.g. "/path/to/my/flash-builder/bin/myapp-wrapper.html").
3) When I launch this debug configuration from within Eclipse the Flex debugger Just Works. As soon as a stop point it opened the Flex Debugger perspective automatically opens.
By launching a debug configuration directly from Eclipse I don't have to rebuild and redeploy a WAR file after each change made to the Flex app. In fact, after I shut down the Flex client I just leave the Java server running and reconnect with the next debugging launch.
In order debug the Java side, I start the application server with the JVM debugger command line arguments and launch a Remote Java Debugger debug launch configuration. Eclipse has no problem running both debuggers at the same time.
The only problem with this setup happens when I need to run the Flex web app from an http:// URL (for example to get flashvars to retrieve URL query parameters). In this case it is a long round-trip to get maven to created the WAR and deploy it, then to launch the debugger...after every Flex client source edit. I posted a question on how to make that case better (http://stackoverflow.com/questions/4426053/quickly-debug-flex-java-web-application-from-eclipse).
This is an area of interest to me so let me know what you are looking for and I can probably help more.

Resources