UtilServicingInstallService Method
Installs a service.
Namespace: DevCase.Core.Windows.ServicingAssembly: 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 = ""
)
Public Shared Sub InstallService (
filepath As String,
svcName As String,
Optional displayName As String = "",
Optional description As String = "",
Optional startType As ServiceStartMode = ServiceStartMode.Automatic,
Optional account As ServiceAccount = ServiceAccount.LocalSystem,
Optional username As String = "",
Optional password As String = ""
)
Dim filepath As String
Dim svcName As String
Dim displayName As String
Dim description As String
Dim startType As ServiceStartMode
Dim account As ServiceAccount
Dim username As String
Dim password As String
UtilServicing.InstallService(filepath, svcName,
displayName, description, startType,
account, username, password)
public:
static void InstallService(
String^ filepath,
String^ svcName,
String^ displayName = L"",
String^ description = L"",
ServiceStartMode startType = ServiceStartMode::Automatic,
ServiceAccount account = ServiceAccount::LocalSystem,
String^ username = L"",
String^ password = L""
)
static member InstallService :
filepath : string *
svcName : string *
?displayName : string *
?description : string *
?startType : ServiceStartMode *
?account : ServiceAccount *
?username : string *
?password : string
(* Defaults:
let _displayName = defaultArg displayName ""
let _description = defaultArg description ""
let _startType = defaultArg startType ServiceStartMode.Automatic
let _account = defaultArg account ServiceAccount.LocalSystem
let _username = defaultArg username ""
let _password = defaultArg password ""
*)
-> unit
No code example is currently available or this language may not be supported.
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.