Run Program not waiting for Adobe AIR runtime to finish

Got a problem you cannot solve? Try here.
sdeschenes
Posts: 76
Joined: Wed Sep 12, 2007 3:34 pm

Run Program not waiting for Adobe AIR runtime to finish

Postby sdeschenes » Mon Jul 01, 2013 10:10 am

I have an installer set up to install my AIR application. In order to install my app, I first need to install Adobe's AIR runtime and then use the runtime to install my app (I need the AIR runtime to install my app silently). I have the Run Program command set to execute the AIR runtime with all the necessary parameters. Even though the runtime does get executed and my app installs, InstallAware doesn't wait for the runtime process to finish and instead continues with the rest of the installation. This is a problem because I need my application installed on the user's system before I can continue. I have used the Run Program command before and never had any problems.

Any help would be much appreciated.

Thanks,
Scott Deschenes

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Run Program not waiting for Adobe AIR runtime to finish

Postby FrancescoT » Mon Jul 01, 2013 12:14 pm

Dear Scott,

have you used the "Wait For Program to Finish" flag with the Run Program command?

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

sdeschenes
Posts: 76
Joined: Wed Sep 12, 2007 3:34 pm

Re: Run Program not waiting for Adobe AIR runtime to finish

Postby sdeschenes » Mon Jul 01, 2013 3:59 pm

Hi Francesco,

Thank you for the quick response!

Yes, I made sure to set the "Wait for Program to Finish" flag. This is a critical aspect of the Run Program command.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Run Program not waiting for Adobe AIR runtime to finish

Postby FrancescoT » Tue Jul 02, 2013 9:04 am

Dear Scott,

Really strange!

could you post the package you are trying to run or the link you used to download it?

Regards.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

sdeschenes
Posts: 76
Joined: Wed Sep 12, 2007 3:34 pm

Re: Run Program not waiting for Adobe AIR runtime to finish

Postby sdeschenes » Tue Jul 02, 2013 3:32 pm

Hi Francesco,

Here is a test project. Before the Welcome dialog appears, it will check if Adobe AIR exists on the user's system. If it doesn't exist, the installer will install it. Then it will proceed to install a sample AIR application, by invoking the Adobe AIR runtime. I have a debug message displaying the return value of the Run Program command.

I have attached a compiled installer. Once you extract the zip, download the latest build of Adobe AIR and place it next to the installer. When you run the installer, you will notice the debug message appear before the sample AIR application is fully installed.

Scott
Attachments
Test_install.zip
Compiled installer
(3.12 MiB) Downloaded 407 times
New Project.zip
InstallAware project
(690.21 KiB) Downloaded 418 times

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Run Program not waiting for Adobe AIR runtime to finish

Postby FrancescoT » Wed Jul 03, 2013 10:59 am

Dear Scott,

I have just tried your package and honestly, your debug message has been displayed once the sample AIR application is fully installed.

I used WIN 7 to test your package ... but I suppose that this doesn't make any difference.

Regards.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

sdeschenes
Posts: 76
Joined: Wed Sep 12, 2007 3:34 pm

Re: Run Program not waiting for Adobe AIR runtime to finish

Postby sdeschenes » Wed Jul 03, 2013 2:36 pm

Hi Francesco,

Yes, the debug message displays but it displays before the sample AIR is fully finished being installed. I noticed the desktop icon for the sample AIR app appears after my debug message appears, which, in my opinion means the sample AIR app hasn't quite finished installing. Without that debug message, the installer would be proceeding as normal while the AIR app is being installed.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Run Program not waiting for Adobe AIR runtime to finish

Postby FrancescoT » Thu Jul 04, 2013 12:10 pm

Dear Scott,

Honestly, I find that the dialog is displayed after AIR is fully installed.
I can assure you that it's what happens if I try to run your package on my system.

I really suppose that what you noticed, it is only a side effect of the delayed desktop refresh ... that does not occur immediately.

Regards.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 20 guests