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!

jrahma
Posts: 51
Joined: Wed Jan 07, 2009 11:56 am

Start Service on Finish

Hi,

I have added Windows Service to my install package.

I don't want the service to start automatically during the installation but I want when the user click Finish then it should start while closing.

How can I do this please?


Thanks,
Jassim
http://www.jassimrahma.com
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Start Service on Finish

Hello Jassim,

In order to do that, you will need a custom action. For instance, you can use our predefined "Launch file" custom action to launch the sc.exe Windows tool. Just add in "Custom Actions" page a "Launch file" custom action without sequence and then on the [Finish] button from "ExitDialog" dialog you can add an "Execute custom action" published event to launch you action when the user press the button.

Please keep in mind that our "Dialog Editor" feature (you need to use in "Dialogs" page to configure a published control event) is available only starting with the "Enterprise" edition of Advanced Installer.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”