UtilServicingInstallService Method

Installs a service.

Definition

Namespace: DevCase.Core.Windows.Servicing
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void InstallService(
	string filepath,
	string svcName,
	string displayName = "",
	string description = "",
	ServiceStartMode startType = ServiceStartMode.Automatic,
	ServiceAccount account = ServiceAccount.LocalSystem,
	string username = "",
	string password = ""
)

Parameters

filepath  String
The service filepath.
svcName  String
The service name.
displayName  String  (Optional)
The service display name.
description  String  (Optional)
The service description.
startType  ServiceStartMode  (Optional)
The service start type.
account  ServiceAccount  (Optional)
The service account.
username  String  (Optional)
The service username.
password  String  (Optional)
The username password.

See Also