Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support specifying a wait timeout when controlling a service with the Service_Control immediate custom action #18

Open
icnocop opened this issue Nov 19, 2014 · 0 comments

Comments

@icnocop
Copy link
Collaborator

icnocop commented Nov 19, 2014

I'd like to request support for specifying a wait timeout when controlling a service with the Service_Control immediate custom action.

By default, the custom action uses an infinite timeout, and this may cause the setup installer to hang/appear hung.

So for example, we can add a new MSI property called "SERVICE_CONTROL_WAIT_TIMEOUT_IN_SECONDS" which gets used when waiting for the service control operation to complete.
It's default value will be set to infinite to support backwards compatibility.

If the timeout has elapsed before the operation has completed, then an exception should be thrown.

I'm thinking to also have the ability to optionally kill the service process if the timeout has elapsed depending on another MSI property called "SERVICE_CONTROL_STOP_KILL_PROCESS_IF_TIMEOUT_EXCEEDED" for example, when specifically trying to stop a service.

@icnocop icnocop changed the title Support specifying a wait timeout when stopping a service with the Service_Control immediate custom action Support specifying a wait timeout when controlling a service with the Service_Control immediate custom action Nov 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant