# Service_Create

> Creates Windows Service using the specified options.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/service-functions/service-create/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Creates Windows Service using the specified options

### Syntax

Service_Create(sServiceName, sDisplayName, sBinPath) As Boolean

### Parameters

#### sServiceName (String)

Name of service

#### sDisplayName (String)

Name showed on service-list

#### sBinPath (String)

Path for binary service-files

### Example

**VBScript**

```vb
If bStatus Then bStatus = Service_Create("ServiceName", "DisplayName", "C:\CapaInstaller.exe")
```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Service_Create](/capainstaller/vb-scripting-library/service-functions/service-create/) [Service_Exist](/capainstaller/vb-scripting-library/service-functions/service-exist/) [Service_SetStartMode](/capainstaller/vb-scripting-library/service-functions/service-setstartmode/) [Service_Start](/capainstaller/vb-scripting-library/service-functions/service-start/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
