diff --git a/README.md b/README.md index 48d2df80..934c625c 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,8 @@ The following parameters are available: | `EXTRA_FLAGS` | Allows passing full CLI flags. Defaults to an empty string. For `--collectors.enabled` and `--config.file`, use the specialized properties `ENABLED_COLLECTORS` and `CONFIG_FILE` | | `ADDLOCAL` | Enables features within the windows_exporter installer. Supported values: `FirewallException` | | `REMOVE` | Disables features within the windows_exporter installer. Supported values: `FirewallException` | +| `APPLICATIONFOLDER` | Directory to install windows_exporter. Defaults to `C:\Program Files\windows_exporter` | + Parameters are sent to the installer via `msiexec`. On PowerShell, the `--%` should be passed before defining properties. @@ -148,6 +150,11 @@ Define a config file. msiexec /i --% CONFIG_FILE="D:\config.yaml" ``` +Alternative install directory +```powershell +msiexec /i --% ADDLOCAL=FirewallException APPLICATIONFOLDER="F:\Program Files\windows_exporter" +``` + On some older versions of Windows, you may need to surround parameter values with double quotes to get the installation command parsing properly: ```powershell