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!

sirgalahadcm
Posts: 2
Joined: Wed May 28, 2008 12:04 am

Services => Control Operations => Event On (Un)Install

The current Use of check boxes in this control does not led to a definite understanding to the order and outcome for operation.
With the three options (Start,Stop, and Delete), what is the effect of having multiple checked? Would having Start and Stop check be equivalent to Restart?

I believe a easier to understand version of this control would be to replace the check boxes with radio buttons and replace the options list with this one.
(Start,Stop,Restart,Delete,No Action)

Also, what happens if an error is thrown during the process of changing the state of the service?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Services => Control Operations => Event On (Un)Install

Hi,
what is the effect of having multiple checked?
If all three options are checked, the existing service will be stopped and removed and the service in the package will be installed and started. This is mentioned in the Service Control Properties help page.
Would having Start and Stop check be equivalent to Restart?
The Sequence is this:
1. Stop
2. Delete
3. Start

This means that if "Start" and "Stop" are checked, the existing service will be stopped (if it exists) and the new service (the one in you package) is installed and started. If you package doesn't contain a newer version of the service, then the control operation will restart the service.
I believe a easier to understand version of this control would be to replace the check boxes with radio buttons and replace the options list with this one.
(Start,Stop,Restart,Delete,No Action)
The "Start", "Stop" and "Delete" options are the only options offered by Windows Installer. However, you can restart a service by checking "Start" and "Stop" (as long as the package doesn't install the service). Also, the "No Action" option means that no checkboxes are checked.
Also, what happens if an error is thrown during the process of changing the state of the service?
I'm afraid that I cannot offer an answer for this question because it depends completely on the error (the behavior is not always the same).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”