# Constants

> The global constants in the scripting library, including the job constants and their values.

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

### Scripting Library Global Constants

### Job Constants:

| **Constant**   | **Type**   | **Description**            |
|:---------------|:-----------|:---------------------------|
| Error_success | Numeric    | Successfull function call  |
| O_Read        | Numeric    | Read-only access of object |
| O_Write       | Numeric    | Full access of object      |
| O_append      | Numeric    | Append-Access of object    |

### Registry Constants:

| **Constant**          | **Type**   | **Description**                                   |
|:----------------------|:-----------|:--------------------------------------------------|
| HKEY_CLASSES_ROOT   | Numeric    | Registry hive root                                |
| HKEY_LOCAL_MACHINE  | Numeric    | Registry hive root                                |
| HKEY_CURRENT_USER   | Numeric    | Registry hive root                                |
| HKEY_USERS           | Numeric    | Registry hive root                                |
| HKEY_CURRENT_CONFIG | Numeric    | Registry hive root |
| REG_SZ               | Numeric    | Typecode for string                               |
| REG_EXPAND_SZ       | Numeric    | Typecode for expanded string value                |
| REG_BINARY           | Numeric    | Typecode for binary value                         |
| REG_DWORD            | Numeric    | Typecode for numeric value                        |
| REG_MULTI_SZ        | Numeric    | Typecode for multi string value                   |
| REG_QWORD            | Numeric    | Typecode for numeric value                        |
| STR_REG_SZ          | String     | Typecode for string value                         |
| STR_REG_EXPAND_SZ  | String     | Typecode for expanded string value                |
| STR_REG_BINARY      | String     | Typecode for binary value                         |
| STR_REG_DWORD       | String     | Typecode for numeric value                        |
| STR_REG_MULTI_SZ   | String     | Typecode for multi string value                   |
| STR_REG_QWORD       | String     | Typecode for numeric value                        |

### FileSystem Constants:

| **Constant**     | **Type**   | Permissions                                        | **Description**                                                          |
|:-----------------|:-----------|:---------------------------------------------------|:-------------------------------------------------------------------------|
| FILE_NORMAL     | Numeric    | special\*\*\*                                      | <font style="color: #2a2a2a;">Normal file. No attributes are set</font>  |
| FILE_READONLY   | Numeric    | <font style="color: #2a2a2a;"> read/write</font>   | <font style="color: #2a2a2a;">Read-only file.</font>                     |
| FILE_HIDDEN     | Numeric    | <font style="color: #2a2a2a;">read/write</font>    | <font style="color: #2a2a2a;">Hidden file.</font>                        |
| FILE_SYSTEM     | Numeric    | <font style="color: #2a2a2a;">read/write</font>    | <font style="color: #2a2a2a;">System file. </font>                       |
| FILE_DIRECTORY  | Numeric    | <font style="color: #2a2a2a;">read-only\*\*</font> | <font style="color: #2a2a2a;">Folder or directory.</font>                |
| FILE_ARCHIVE    | Numeric    | <font style="color: #2a2a2a;">read/write</font>    | <font style="color: #2a2a2a;">File has changed since last backup.</font> |
| FILE_COMPRESSED | Numeric    | <font style="color: #2a2a2a;">read-only\*\*</font> | <font style="color: #2a2a2a;">Compressed file.</font>                    |

\*  Only clears r/w attributes. Will not clear read-only attributes

\*\* Read-only attributes cannot be set from VBScript

Read more

- [FileSystemObject Attributes Property](https://msdn.microsoft.com/en-us/library/5tx15443(v=vs.84).aspx)

### MSI Status

| Constant                           | Type   | Value                                         |
|:-----------------------------------|:-------|:----------------------------------------------|
| MSI_BAD_CONFIGURATION            | String | Bad configuration.                            |
| MSI_INVALID_ARGUMENT             | String | Invalid argument.                             |
| MSI_NOT_INSTALLED                | String | The package is not installed.                 |
| MSI_IS_ADVERISED_NOT_INSTALLED | String | The package is advertised, but not installed. |
| MSI_IS_ABSENT                    | String | The package is absent.                        |
| MSI_IS_INSTALLED                 | String | The package is installed.                     |

### Service Controller Status

| Constant             | Type   | Value           |
|:---------------------|:-------|:----------------|
| SCS_Running         | String | Running         |
| SCS_Stopped         | String | Stopped         |
| SCS_Paused          | String | Paused          |
| SCS_StartPending    | String | StartPending    |
| SCS_StopPending     | String | StopPending     |
| SCS_PausePending    | String | PausePending    |
| SCS_ContinuePending | String | ContinuePending |

### Service Start Mode

| Constant              | Type   | Value            |
|:----------------------|:-------|:-----------------|
| SSM_Boot             | String | Boot             |
| SSM_System           | String | System           |
| SSM_Automatic        | String | Automatic        |
| SSM_AutomaticDelayed | String | AutomaticDelayed |
| SSM_Manual           | String | Manual           |
| SSM_Disabled         | String | Disabled         |

### Execution Context

| Constant    | Type   | Value                             |
|:------------|:-------|:----------------------------------|
| EC_UNKNOWN | String | UNKNOWN 'Initial undefined value' |
| EC_32On32  | String | 32On32                            |
| EC_32On64  | String | 32On64                            |
| EC_64On64  | String | 64On64                            |

### Workstation Operating Systems

| Constant             | Type   | Value                       |
|:---------------------|:-------|:----------------------------|
| OS_UNKNOWN          | String | Unknown                     |
| OS_WINDOWS_NT40    | String | Windows NT 4.0 Workstation  |
| OS_WINDOWS_2K      | String | Windows 2000                |
| OS_WINDOWS_XP      | String | Windows XP Professional     |
| OS_WINDOWS_XP_X64 | String | Windows XP Professional x64 |
| OS_WINDOWS_VISTA   | String | Windows Vista               |
| OS_WINDOWS_7       | String | Windows 7                   |
| OS_WINDOWS_8       | String | Windows 8                   |
| OS_WINDOWS_81      | String | Windows 8.1                 |
| OS_WINDOWS_10      | String | Windows 10                  |

### Server Operating Systems

| Constant                          | Type   | Value                            |
|:----------------------------------|:-------|:---------------------------------|
| OS_WINDOWS_NT40_SERVER         | String | Windows NT 4.0 Server            |
| OS_WINDOWS_NT40_DOMAIN         | String | Windows NT 4.0 Domain Controller |
| OS_WINDOWS_2K_SERVER           | String | Windows 2000 Server              |
| OS_WINDOWS_2K_ADVANCED_SERVER | String | Windows 2000 Advanced Server     |
| OS_WINDOWS_SERVER_2003         | String | Windows Server 2003              |
| OS_WINDOWS_SERVER_2008         | String | Windows Server 2008              |
| OS_WINDOWS_SERVER_2008_R2     | String | Windows Server 2008 R2           |
| OS_WINDOWS_SERVER_2012         | String | Windows Server 2012              |
| OS_WINDOWS_SERVER_2012_R2     | String | Windows Server 2012 R2           |
| OS_WINDOWS_SERVER_2016         | String | Windows Server 2016              |
