From b809f5a8ee5fda2f1d4948d38c9e0628aba78eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Sat, 1 Mar 2025 00:17:48 +0100 Subject: [PATCH] docs: added examples for alternative installer dir (#1909) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto Kröpke --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) 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