From fa28ca3353eb5daa22333dee12d08ab5531b57f1 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:50:26 -0500 Subject: [PATCH] Add PowerShell variant to MSI install docs (#1548) (#1565) * Add PowerShell variant to MSI install docs * Change 'Bash' to 'default command prompt' * change nesting of the variant command bullets * re-add URL description (cherry picked from commit 1d7deb25d01b0aa3631d2b83832ae4bad192275e) Co-authored-by: David Kilfoyle <41695641+kilfoyle@users.noreply.github.com> --- .../elastic-agent/install-agent-msi.asciidoc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/en/ingest-management/elastic-agent/install-agent-msi.asciidoc b/docs/en/ingest-management/elastic-agent/install-agent-msi.asciidoc index 7a8b4e5d4..c67a1e18a 100644 --- a/docs/en/ingest-management/elastic-agent/install-agent-msi.asciidoc +++ b/docs/en/ingest-management/elastic-agent/install-agent-msi.asciidoc @@ -10,13 +10,24 @@ The MSI package installer must be run by an administrator account. The installer . Download the latest Elastic Agent MSI binary from the link:https://www.elastic.co/downloads/elastic-agent[{agent} download page]. -. Run the installer: +. Run the installer. The command varies slightly depending on whether you're using the default Windows command prompt or PowerShell. ++ +==== +** Using the default command prompt: + [source,shell] ---- elastic-agent--windows-x86_64.msi INSTALLARGS="--url= --enrollment-token=" ---- + +** Using PowerShell: ++ +[source,shell] +---- +./elastic-agent--windows-x86_64.msi --% INSTALLARGS="--url= --enrollment-token=" +---- +==== ++ Where: * `VERSION` is the {stack} version you're installing, indicated in the MSI package name. For example, `8.13.2`.