[wix-users] Remote Service Stop & Start
egcastr at gmail.com
Thu May 24 11:12:24 PDT 2018
Window Installer standard actions *only* act locally. Thus ServiceControl
only acts on local services.
The WiX documentation for ServiceControl
has a link to the MSDN documentation for the ServiceControl table
which says the ServiceControl table affects the StartServices,
StopServices, and DeleteServices standard actions.
If ServiceControl had remote support, *which it doesn't*, then your custom
action(s) would need to run before one or more of the appropriate standard
Changing system resources on another machine remotely seems like a really,
really, really bad idea. Good luck!
Edwin G. Castro
On Thu, May 24, 2018 at 5:59 AM, Ven H via wix-users <
wix-users at lists.wixtoolset.org> wrote:
> I have a custom action which does some actions in a remote SQL server.
> After this, there is a requirement to stop and start SQL service in that
> remote machine. I know there is ServiceControl element.
> But, can we use ServiceControl to stop / service on a remote server? Also,
> if ServiceControl element is defined in wxs file, is it possible to ensure,
> it gets called after the successful execution of the custom action? If both
> these are not possible, I may have to stop & start the service
> programmatically from my custom action. Please help.
> WiX Toolset Users Mailing List provided by FireGiant
More information about the wix-users