Pause After Service Shutdown - 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!

tjp26
Posts: 3
Joined: Tue Mar 01, 2011 5:20 pm

Pause After Service Shutdown

I have an installation that I wrote that shuts down the JBoss default Service on the target machine and needs to do some clean up work before installing the new ear file and restarting the JBoss default Service. The issue is that I need the installation to pause for 30 seconds to let the JBoss default Service shutdown before deleting the tmp,data and work directories. I've attempted to use the Configure Operation Parameters to wait 60 seconds after shutting down the JBoss default Service but the wait step never happens. Any ideas what I might be missing?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Pause After Service Shutdown

Hello,

Please note that the configure operations are used to configure services operations, not the install process.

What you can try is to create your own custom action that stops the service and then waits for as many seconds as you wish from your code.
You can set the custom action as synchronous and to wait for the return code, so the installer will not continue until your custom action returns a value.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”