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!

pimboden40
Posts: 22
Joined: Wed Jun 04, 2014 3:42 pm

Optionally Start windows Service

Hello.

I have build an Installer for Installing / Configuring a Windows Service.
This installer is only used by our technicians. I would like to give them the option to select whether the service should start immediately (during Installation-How it works now) or not to start the service.

I was thinking of giving some combobox with the options:
"Start my service name immediately"
"Don't start my service name"

But I have no idea how to tell Advanced Installer to change its behavior, depending o the users selection.

Help will be appreciated.

Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Optionally Start windows Service

Hello,

In order to achieve that you can condition the Start Service action.

You can see a standard action by using the "Show Standard Action" button on the Custom Actions page's toolbar or by using the option "Show Standard Action" from the context menu while an action group is selected. Another context menu will open, specific to the selected element and will display all the available Standard Actions.

In the Dialogs page you can add the predefined Radio Button Group control with the related options.

Add in the condition field of the Start Service action the property assigned to the control.

Please take a look on the attached sample.

Best regards,
Dan
Attachments
StartServiceDependingTheUserChoice.aip
(14.92 KiB) Downloaded 354 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pimboden40
Posts: 22
Joined: Wed Jun 04, 2014 3:42 pm

Re: Optionally Start windows Service

Thanks Dan
Works like a charm!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Optionally Start windows Service

You're welcome,

If you have other questions, please let us know.

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

Return to “Building Installers”