Instal Service After Process Closes - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Instal Service After Process Closes

Hi,
I want to run a the install service step only after a custom action finished.

The custom action calls a process (for example fltmc.exe) and only AFTER that process closes, I want to run the install service step.

How can I perform that?
Thanks!
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Instal Service After Process Closes

Hi,

The services installation takes place during the InstallServices standard action. You can try to schedule the custom action that launches the process before this standard action, for example you can schedule it under the RegisterComPlus standard action.

To display this standard action right click Install -> Show Standard Action -> Before Finalization -> RegisterComPlus.

The custom action that launches the process should also have the Execution Properties set to "Synchronous Execution, check return code" radio button, this way the installation process will wait for the custom action launched process to end before it continues.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Re: Instal Service After Process Closes

Thanks Bugdan,
The custom action that launches the process should also have the Execution Properties set to "Synchronous Execution, check return code" radio button, this way the installation process will wait for the custom action launched process to end before it continues.
My process that I want to wait until it closes is called from a batch file (FLTMC) so I am not sure that the installer waits to it to be closed...
How can I verify that my process (that was called from teh batch file) was closed and only after that, the Install Service will run?

Thanks!
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Instal Service After Process Closes

Hi,
How can I verify that my process (that was called from teh batch file) was closed and only after that, the Install Service will run?
Windows Installer waits for the bat to finish executing and the bat waits for your process to terminate, therefore Windows Installer will wait for your process to terminate before executing Install Service.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”