PDA

View Full Version : Does InstallShield support Adobe AIR installs?



redbarchetta
08-02-2012, 11:30 AM
Hi all, been asked to take a couple of Adobe AIR applications and wrap them up into a single install. Wanted to find out what kind of, if any support does InstallShield have for installing Adobe AIR applications.

Does InstallShield have the ability to take a .air file, and that air installer? Or does InstallShield connect to an air project, and package all the air projects data into InstallShields own format for install?

Any help will be greatly appreciated.

Cary R
08-08-2012, 08:32 AM
Hi There,

InstallShield does not explicitly support Adobe AIR, however, can be made to do so.

Basically, the *.air files have a command line by which they get installed on the machine:

C:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Resources\airappinstaller.exe -silent "C:\path\to\application.air"

And then you can wire these up as custom actions within your project file.

Hope this helps!

Raghvendra
01-02-2013, 12:20 AM
Hi all,
I want to install .air file using install Shield and i wrote following install script code for this but this is not working, can anyone help me......

#define PROGRAM "C:\ProgramData\Raghvendra\AirFile\tiles.air"

#define LAUNCH_WAIT_TEXT "Launch Notepad; after it closes, continue setup"

#define LAUNCH_GO_TEXT "Launch Notepad and continue setup immediately"

#define EXIT_TEXT "Exit installation"

#include "ifx.h"

export prototype MyFunction(HWND);

function MyFunction(hMSI)
// To Do: Declare local variables.

STRING szProgram, szCmdLine, szMsg;

BOOL bLaunchAndGo, bLaunchAndWait, bExit;

NUMBER nWait;
begin

// To Do: Write script that will be executed when MyFunction is called.

// Run the installation in a normal Window;

Enable (BACKGROUND);

Enable (DEFWINDOWMODE);



// Disable the Back button in installation dialogs.

Disable (BACKBUTTON);



// Get an option from the user.

AskOptions (EXCLUSIVE, "Test",

LAUNCH_WAIT_TEXT, bLaunchAndWait,

LAUNCH_GO_TEXT, bLaunchAndGo,

EXIT_TEXT, bExit);



if !bExit then



// Set variable to pass to LaunchAppAndWait

// to indicate whether or not to wait.

if bLaunchAndWait then

nWait = WAIT;

else

nWait = NOWAIT;

endif;



// Launch Notepad; the value of nWait determines

// when execution of the installation continues.

if (LaunchAppAndWait (PROGRAM, "", nWait) < 0) then

MessageBox ("Unable to launch "+ PROGRAM +".",SEVERE);

endif;



MessageBox ("Setup will now exit.", INFORMATION);



endif;

end;

rrinblue22
01-04-2013, 04:29 AM
Hey Raghvendra,

You need to call airappinstaller.exe to process your*.air files and with that the launch script will somewhat appear as below.


szProgram = "C:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Resources\airappinstaller.exe";
szCmdLine = "C:\ProgramData\Raghvendra\AirFile\tiles.air";

LaunchAppAndWait ( szProgram, szCmdLine, nOptions );

Raghvendra
01-04-2013, 06:22 AM
Hey Raghvendra,

You need to call airappinstaller.exe to process your*.air files and with that the launch script will somewhat appear as below.


szProgram = "C:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Resources\airappinstaller.exe";
szCmdLine = "C:\ProgramData\Raghvendra\AirFile\tiles.air";

LaunchAppAndWait ( szProgram, szCmdLine, nOptions );

Thanks rrinblue22 :)