Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adobe Air App EXE on a USB Stick

EDIT: As it turns out, the issues described here were caused by an outdated version of the Adobe Air runtime. The Air app I had written was compiled for Air 2, but the computers were running Air 1.5. Updating the computers to Air 2.7 (the current version at the time of writing) fixed the problem. Unfortunately, running a newer Air app in an older runtime generates a misleading error. Beware!

ORIGINAL POST:

I'm building an Air app for internal use at my company. I need to install the app to a USB data stick, so that the installed app may be quickly moved from one computer to another. This works just fine on Macs, with the .air generated .app program running just fine on whatever Mac it is moved to.

When I do this on Windows, however, it only works on the computer that performed the initial installation of the .air file. Moving the stick to a different computer and running the program .exe results in an error message: "The installation of this application is damaged. Try reinstalling or contacting the publisher for assistance".

Is this the expected behaviour? Is there any way to run an AIR .exe on a USB data stick regardless of the computer that generated the EXE?

Just to be clear: I'm not looking to move the installer between computers, but the .exe that results from running the installer. I want to run the .air installer once, take the .exe result, put it on a data stick, and then run that .exe on any computer.

like image 629
ivanreese Avatar asked Dec 21 '22 09:12

ivanreese


1 Answers

Simple recipe to make a portable Adobe AIR app

Ingredients:

  1. A whole ziplock of Adobe AIR SDK, recently harvested from Adobe's server farm.
  2. One .air package, fresh.
  3. Command-line to taste.

Steps:

  1. Extract the .air package with a 7-Zip blender.
  2. In this folder bowl, whisk in the bin/adl.exe and runtimes/air/win from the SDK.
  3. Take the META-INF/AIR/application.xml yolk and set aside.
  4. Make sure to have adl.exe, win/ and application.xml in the folder casserole.
  5. Add a pinch of adl -runtime win application.xml and let it simmer.

     adobe air cooking

Optional: if you want shortcut sauce, just take note of the folder's location in your filesystem kitchen and re-write the parameters above so they have full paths to the win runtime and application.xml.

Finally, most .air will come with a baker's dozen .pngs in the icons directory. You can use an icon oven to grill these into a golden crispy icon.ico to be used in the shortcut sauce.

Bon appétit.

like image 135
Camilo Martin Avatar answered Dec 27 '22 01:12

Camilo Martin