misterti
Posts: 3
Joined: Wed Oct 16, 2013 9:44 pm

Run installer within install

Hi,

I currently start a batch file "#batch.bat" in the finish execution custom action and wait for it to finish before i continue installation. This batch file starts a postgresql installer which starts a builtin VC++ runtime distributable package. Now the problem arises that the VC++ installer wants to wait for my installer to complete which causes a deadlock. (One waits for the other). I am running postgresql install in the end, because i want to install it in the installation destination folder chosen by the user. My batch file also uses some sql script files that were installed in the same folder as batch.bat.

My question is, when do i run my batch file to install postgresql to the destination folder so it wont deadlock?
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Run installer within install

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm not sure why you encounter this behavior. Can you please try to disable the Wait for custom action to finish before proceeding option from the custom actions properties and see if the behavior still persist?

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
misterti
Posts: 3
Joined: Wed Oct 16, 2013 9:44 pm

Re: Run installer within install

If i disable the Wait for custom action to finish before proceeding, then the install continues while the other installer is still running and it is possible to press finish on the current install. But i don't want that, i want to wait for return code of the current sub install and do appropriate action based on the return code.
misterti
Posts: 3
Joined: Wed Oct 16, 2013 9:44 pm

Re: Run installer within install

Can you confirm this behaveour?
Is there a solution for this?
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Run installer within install

Hi,

Indeed you might get the described behavior.
So, can you please try to add your custom action in the Finish Dialogs Stage after the Install Execution Stage stage and see if the behavior still persist?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”