Skip to content

Commit 1b37b82

Browse files
committed
(#1031) Update wording for setting variable
Updates the wording to give a few options for setting the environment variable. Adds information for how to verify it has been set.
1 parent 2783e5b commit 1b37b82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/content/docs/en-us/choco/setup.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,9 @@ See <Xref title="Installing Chocolatey Behind a Proxy Server" value="proxy-setti
714714

715715
### Installing to a different location
716716

717-
The Chocolatey installation script looks for the `ChocolateyInstall` environment variable in order to identify where it should install to. If this environment varialbe does not exist, it will install Chocolatey to the default location. In order to install to a non-default location, you should set this variable in a way that it is available in the process that will be running the install script.
717+
The Chocolatey installation script looks for the `ChocolateyInstall` environment variable in order to identify where it should install to. If this environment variable does not exist, it will install Chocolatey to the default location. In order to install to a non-default location, you should set this variable in a way that it is available in the process that will be running the install script. For example you could set the environment variable through the [Windows GUI](https://www.howtogeek.com/787217/how-to-edit-environment-variables-on-windows-10-or-11/), or you could use `setx`](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/setx).
718+
719+
You can validate that PowerShell has the environment variable by running: `Write-Host $env:ChocolateyInstall`
718720

719721
1. Create an environment variable named `ChocolateyInstall` and set it to the folder you want Chocolatey to install to prior to installation.
720722
1. Don't use `"C:\Chocolatey"` unless necessary.

0 commit comments

Comments
 (0)