TopshelfManager.

UninstallService(FilePath, string, bool, int) Method

Summary

Uninstalls a Topshelf windows service
Assembly
Cake.Topshelf.dll
Namespace
Cake.Topshelf
Containing Type
TopshelfManager

Syntax

public void UninstallService(FilePath filePath, string instance = null, bool sudo = false, int timeout = 60000)

Parameters

Name Type Description
filePath FilePath The file path of the Topshelf executable to uninstall.
instance string The instance name of the service to uninstall.
sudo bool Prompts for UAC if running on Vista/W7/2008
timeout int The time in milliseconds to wait for the Topshelf executable.

Return Value

Type Description
void