Skip to content

Commit

Permalink
Added option to disable installing the service
Browse files Browse the repository at this point in the history
  • Loading branch information
mickem committed Feb 12, 2025
1 parent b011ccf commit 1a990fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/installing.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ You can use group policies to push the configuration files but there are several
The MSI file can be customized during the installer. The following keys are available:

| Keyword | Description |
| ------------------ |-------------------------------------------------------------------------------------------------------------------------|
|--------------------|-------------------------------------------------------------------------------------------------------------------------|
| INSTALLLOCATION | Folder where NSClient++ is installed. |
| CONF_CAN_CHANGE | Has to be set for all configuration changes to be applied. |
| ADD_DEFAULTS | Add default values to the configuration file. |
Expand All @@ -91,7 +91,7 @@ The MSI file can be customized during the installer. The following keys are avai
| OP5_PASSWORD | The password to login with on the OP5_SERVER |
| OP5_HOSTGROUPS | Additional hostgroups to add to the host. |
| OP5_CONTACTGROUP | Additional contactgroups to add to the host. |
| | |
| NO_SERVICE | Set to 1 to disable installing the service (then you can manually create and activate the service when needed) |

### Features

Expand Down
2 changes: 2 additions & 0 deletions installers/installer-NSCP/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@

<InstallExecuteSequence>
<RemoveExistingProducts After='InstallValidate'></RemoveExistingProducts>
<InstallServices>NOT (NO_SERVICE = 1)</InstallServices>
<StartServices>NOT (NO_SERVICE = 1)</StartServices>

<Custom Action="DetectTool" After="CostFinalize">NOT (REMOVE ="ALL") AND NOT UILevel=5</Custom>
<Custom Action="ApplyTool" After="DetectTool">NOT (REMOVE ="ALL") AND NOT UILevel=5</Custom>
Expand Down

0 comments on commit 1a990fd

Please sign in to comment.