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
FOLLOW US
Get the latest news in Application Packaging