Standalone installer: install GRASS GIS with the required support packages.
OSGeo4W is an installer for a broad set of open source geospatial software packages including GRASS GIS as well as many other packages (QGIS, GDAL/OGR, and more).
NOTE FOR EXISTING USERS: OSGeo4W v2 is now the regular repository. OSGeo4W v2 does not include a 32-bit version. If you need 32-bit support, use the version 1 download (See below).
CAUTION: Upgrades of old (v1) setups using the new repository are not supported. You need to do a fresh install or use a different install directory.
Legacy download (OSGeo4W v1)
The following install modes are offered (see also the dedicated wiki page for further details):
Run the downloaded installer as administrator and select the grass (stable) or grass-daily (development) packages to install. All needed dependencies (e.g. GDAL, common python packages) will be automatically downloaded.
All packages can be individually selected and additional useful packages (e.g. python-pandas, msys) are available, too.
Installation can also be done through command line, as shown below:
osgeo4w-setup.exe -q -k -P grass -s https://download.osgeo.org/osgeo4w/v2/x86_64/
In order to have GRASS GIS support (also in QGIS-Processing) you need to install the “qgis*-grass-plugin” packages.