Skip to content

Commit 1f68ffe

Browse files
committed
(#1031) Update wording of custom install location
Updates the wording of the custom install location documents to clarify that the ChocolateyInstall variable must be available to the process that is installing Chocolatey.
1 parent c863211 commit 1f68ffe

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

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

715715
### Installing to a different location
716716

717-
1. Create a __machine__ level (__user__ level will also work) environment variable named `ChocolateyInstall` and set it to the folder you want Chocolatey to install to prior to installation (this environment variable must be set globally or available to PowerShell- it is not enough to simply make it available to your current command prompt session).
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.
718+
719+
1. Create an environment variable named `ChocolateyInstall` and set it to the folder you want Chocolatey to install to prior to installation.
718720
1. Don't use `"C:\Chocolatey"` unless necessary.
719-
1. Create the folder manually.
720721
1. If you have already installed (and want to change the location after the fact):
721-
* Follow the above steps.
722-
* Install Chocolatey again.
723-
* Copy/Move over the items from the old lib/bin directory.
724-
* Delete your old install directory.
722+
* Follow the above steps.
723+
* Install Chocolatey again.
724+
* Copy/Move over the items from the old lib/bin directory.
725+
* Delete your old install directory.
725726

726727
<Callout type="info">
727728
There is one really important consideration when installing Chocolatey to a non-default location: Chocolatey only locks down the permissions to Admins when installed to the default location `%PROGRAMDATA%\Chocolatey`, which means the same thing as `%SystemDrive%\ProgramData\Chocolatey`.

0 commit comments

Comments
 (0)