diff --git a/doc/install.html b/doc/install.html index 83e98bd0d36..909f82fd4a0 100644 --- a/doc/install.html +++ b/doc/install.html @@ -51,7 +51,8 @@ OS/arch combination you may want to try
The Go binary distributions assume they will be installed in
-/usr/local/go
, but it is possible to install them in a different
+/usr/local/go
(or c:\Go
under Windows),
+but it is possible to install them in a different
location. If you do this, you will need to set the GOROOT
environment variable to that directory when using the Go tools.
+Windows users should read the section about setting +environment variables under Windows. +
+@@ -113,6 +119,15 @@ Terminal sessions for the change to take effect.
+The Go project provides two installation options for Windows users +(besides installing from source): +an MSI installer that configures your installation automatically, +and a zip archive that requires you to set some environment variables. +
+ +
Open the .msi
file and follow the prompts to install the Go tools.
By default, the installer puts the Go distribution in c:\Go
.
@@ -124,6 +139,31 @@ The installer should put the c:\Go\bin
directory in your
command prompts for the change to take effect.
+Extract the .zip
file to the directory of your choice (we
+suggest c:\Go
).
+
+If you chose a directory other than c:\Go
, you must set
+the GOROOT
environment variable to your chosen path.
+
+Add the bin
subdirectory of your Go root (for example, c:\Go\bin
) to to your PATH
environment variable.
+
+Under Windows, you may set environment variables through the "Environment +Variables" button on the "Advanced" tab of the "System" control panel. Some +versions of Windows provide this control panel through the "Advanced System +Settings" option inside the "System" control panel. +
+