Page 1 of 1
Run Program not waiting for Adobe AIR runtime to finish
Posted: Mon Jul 01, 2013 10:10 am
by sdeschenes
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
Re: Run Program not waiting for Adobe AIR runtime to finish
Posted: Mon Jul 01, 2013 12:14 pm
by FrancescoT
Dear Scott,
have you used the "Wait For Program to Finish" flag with the Run Program command?
Regards
Re: Run Program not waiting for Adobe AIR runtime to finish
Posted: Mon Jul 01, 2013 3:59 pm
by sdeschenes
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.
Re: Run Program not waiting for Adobe AIR runtime to finish
Posted: Tue Jul 02, 2013 9:04 am
by FrancescoT
Dear Scott,
Really strange!
could you post the package you are trying to run or the link you used to download it?
Regards.
Re: Run Program not waiting for Adobe AIR runtime to finish
Posted: Tue Jul 02, 2013 3:32 pm
by sdeschenes
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
Re: Run Program not waiting for Adobe AIR runtime to finish
Posted: Wed Jul 03, 2013 10:59 am
by FrancescoT
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.
Re: Run Program not waiting for Adobe AIR runtime to finish
Posted: Wed Jul 03, 2013 2:36 pm
by sdeschenes
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.
Re: Run Program not waiting for Adobe AIR runtime to finish
Posted: Thu Jul 04, 2013 12:10 pm
by FrancescoT
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.