wyDay blog  |  Downloads  |  Buy
Support forum
wyDay blog
wyDay Home

Starting and Stopping Windows Services

wyUpdate supports starting and stopping Windows Services. Simply go to the "Update Actions" in wyBuild and add a new action:

Services to start and stop

Services are stopped before the update has started, and services are started once the update has completed. wyUpdate has full error detection and rollback, so if something goes wrong it will rollback to the last working version of your software.

Start your service with arguments

You can pass arguments to your service's ServiceMain(...) or OnStart(...) function by listing each argument on a separate line:

Arguments when starting services

You can even use variables and commands that will be processed by wyBuild and wyUpdate (e.g. %version%, %basedir%, %product%, %company%)