• 1
  • 2
  • 3

3.24.2 | Updated: 02 May 2022



Downloads of v 3.24.2:


Software Author(s):

  • OSGeo

  • 1
  • 2
  • 3
QGIS 3.24.2

  • 1
  • 2
  • 3

This Package Contains an Exempted Check

Not All Tests Have Passed

Validation Testing Passed

Verification Testing Passed


Scan Testing Exemption for this package version only:

File too large to be scanned

Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install QGIS, run the following command from the command line or from PowerShell:


To upgrade QGIS, run the following command from the command line or from PowerShell:


To uninstall QGIS, run the following command from the command line or from PowerShell:


Deployment Method:

📝 NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)

2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade qgis -y --source="'INTERNAL REPO URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade qgis -y --source="'INTERNAL REPO URL'" 

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Install qgis
    name: qgis
    version: '3.24.2'
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

chocolatey_package 'qgis' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '3.24.2'

See docs at https://docs.chef.io/resource_chocolatey_package.html.

cChocoPackageInstaller qgis
    Name     = "qgis"
    Version  = "3.24.2"
    Source   = "INTERNAL REPO URL"

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.

package { 'qgis':
  ensure   => '3.24.2',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.

4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package is exempt from moderation. While it is likely safe for you, there is more risk involved.

QGIS is a user friendly Open Source Geographic Information System (GIS) licensed under the GNU General Public License. QGIS is an official project of the Open Source Geospatial Foundation (OSGeo). It runs on Linux, Unix, Mac OSX, Windows and Android and supports numerous vector, raster, and database formats and functionalities.

General Features

  • View data -- Spatially-enabled tables and views, vector formats, raster and imagery formats, GRASS raster and vector data and online spatial data.
  • Explore data and compose maps -- Interactively explore spatial data with a friendly GUI with many helpful tools.
  • Create, edit, manage and export data -- Vector and raster layers in several formats.
  • Analyze data -- vector analysis, sampling, geoprocessing, geometry and database management tools including the complete GRASS functionality of more than 400 modules.
  • Publish maps on the Internet -- QGIS can be used as a WMS, WMTS, WMS-C or WFS and WFS-T client, and as a WMS, WCS or WFS server.
  • Extensible functionality through plugins
  • Python console

This package will install the "Latest Release" version of QGIS with the richest feature set. If you want to install a version with more more stability but less features, try the package for QGIS-Long Term Release. These packages can now co-exist!

Keeping old releases

Upon installation/upgrade, this package will attempt to remove the newest installed version of QGIS. (It will not remove LTR versions installed via the Chocolatey package.) If you would like to skip the uninstallation of older versions, use the a "Keep" package parameter as follows:

choco install qgis -params '"/Keep"'

This parameter will be ignored if the newest version has the same major.minor value as this package because the QGIS installer won't allow two different builds of the same major.minor release. (I.E. Version 3.0.1 has the same "3.0" as version 3.0.3.) This parameter would allow you to keep a v2.18.x install of QGIS when upgrading to a v3.0.x package.

Uninstallation should remove only the installed, Chocolatey package version.

$ErrorActionPreference = 'Stop'

$NewRelease = $env:ChocolateyPackageVersion
$LTRversion = '3.22.6'

$InstallArgs = @{
   packageName    = 'qgis'
   fileType       = 'MSI'
   softwareName   = "$env:ChocolateyPackageName $env:ChocolateyPackageVersion*"
   url64bit       = 'https://qgis.org/downloads/QGIS-OSGeo4W-3.24.2-1.msi'
   checksumType   = 'sha256'
   checksum64     = '5d8123657ddaaca505e021260f123eb8213ab9bc9ca2a2f67b6638fbc1abd597'
   silentArgs     = "/qn /norestart /l*v `"$($env:TEMP)\$($env:ChocolateyPackageName).$($env:chocolateyPackageVersion).MsiInstall.log`""
   validExitCodes = @(0)

$pp = Get-PackageParameters

# QGIS install is best done with older versions uninstalled
[array]$Keys = Get-UninstallRegistryKey -SoftwareName "QGIS *"
if ($Keys) {
   $TargetKey = $null
   if ($Keys.Count -gt 1) {
      Write-Warning "Multiple, previously-installed versions of QGIS found."
      # Find the most recent version
      $TargetVersion = [version]'0.0'
      Foreach ($key in $Keys) {
         $v = [version]($key.DisplayName -replace '[^0-9.]','')
         if ($v -ge $TargetVersion) { 
            $TargetVersion = $v 
            $TargetKey = $key
   } elseif ($Keys.Count -eq 1) {
      $TargetKey = $Keys[0]
      $TargetVersion = [version]($TargetKey.DisplayName -replace '[^0-9.]','')
      Write-Verbose "QGIS version, $TargetVersion, already installed."

   $PkgShortVersion = [version](([version]$env:ChocolateyPackageVersion).tostring(2))

   If ($TargetVersion -le [version]$LTRversion) {
      # Want to avoid removing QGIS-LTR package installs
      if (Test-Path ($env:ChocolateyPackageFolder + "-ltr")) {
         $nuspec = Get-ChildItem ($env:ChocolateyPackageFolder + "-ltr") -Filter "*.nuspec" | Select-Object -First 1
         $text = (Get-Content $nuspec.fullname | Select-String '<version>[0-9.]*</version>').Matches.Value
         $LTRPkgShortVer = [version](([version]($text -replace '[^0-9.]','')).ToString(2))
         if ($LTRPkgShortVer -ge [version]($TargetVersion.tostring(2))) {
            # QGIS may have changed major.minor version.  
            # If newest install conflicts with LTR install don't uninstall.
            $TargetKey = $null
            If ($LTRPkgShortVer -ge $PkgShortVersion) {
               Throw ("QGIS package must be newer than any QGIS-LTR package installed!`n" +
                        "`tInstalled QGIS-LTR version:  $LTRPkgShortVer.x`n")
if ($TargetKey) {
   $TargetShortVersion = [version](([version]$TargetVersion).tostring(2))
   if ($pp.contains("Keep")) {
      Write-Host "You have requested for this package to NOT uninstall any previous installs of QGIS." -ForegroundColor Cyan
   if ((-not $pp.contains("Keep")) -or ($TargetShortVersion -eq $PkgShortVersion)) {
      if ($pp.contains("Keep")) {
         Write-warning "Multiple installs of minor (xx.yy) releases are not possible.  Version $TargetVersion will be uninstalled."
      Write-Host "Uninstalling older QGIS version $TargetVersion. Please wait." -ForegroundColor Cyan

      # The QGIS uninstaller sometimes leaves stuff behind that still prevents install
      Get-ChildItem HKLM:\SOFTWARE | 
                  Where-Object {$_.name -match "QGIS ?$TargetShortVersion"} |
                  Remove-Item -Recurse -Force 
      # AND it leaves behind dead, public desktop shortcuts
      if ( Test-Path "$env:PUBLIC\Desktop\QGIS $TargetShortVersion") { 
         Remove-Item "$env:PUBLIC\Desktop\QGIS $TargetShortVersion" -Recurse -Force 
      $OrphanedLinks = Get-ChildItem "$env:PUBLIC\Desktop\" -Filter "*.lnk" 
      Foreach ($Item in $OrphanedLinks) {
         $LinkTarget = (new-object -comobject Wscript.Shell).CreateShortcut($Item.FullName).TargetPath
         if ($LinkTarget -match "QGIS $TargetShortVersion") {
            Remove-Item $Item.FullName -Recurse -Force 
      if ($TargetKey.UninstallString -match '\.exe$') {
         $exeToRun = $TargetKey.UninstallString
         $Switches = '/S'
      } else {
         $exeToRun = 'msiexec.exe'
         $ID = ($TargetKey.UninstallString -split '/x')[-1]
         $Switches = "/x$ID /qn /norestart /l*v `"$($env:TEMP)\$($env:ChocolateyPackageName).$TargetVersion.MsiUninstall.log`""
      $UninstallArgs = @{
         ExeToRun       = $exeToRun
         Statements     = $Switches
         ValidExitCodes = @(0)
      $null = Start-ChocolateyProcessAsAdmin @UninstallArgs
      # The uninstaller starts another process and immediately returns.  
      Get-Process | Where-Object {$_.path -match '.*Temp.*chocolatey.*Au_.exe'} |wait-process

# Finally, install.
Write-Host "Installing QGIS can take a few minutes.  Please be patient." -ForegroundColor Cyan
Install-ChocolateyPackage @InstallArgs
$ErrorActionPreference = 'Stop'

$AppShortVersion = ([version]$env:ChocolateyPackageVersion).tostring(2)

[array]$key = Get-UninstallRegistryKey -SoftwareName "QGIS $AppShortVersion*"

if ($key.Count -eq 1) {
   $UninstallArgs = @{
      PackageName    = $env:ChocolateyPackageName
      ValidExitCodes = @(0)
   if ($key.UninstallString -match '\.exe$') {
      $UninstallArgs.File       = $key.UninstallString
      $UninstallArgs.FileType   = 'EXE'
      $UninstallArgs.SilentArgs = '/S'
   } else {
      $ID = ($key.UninstallString -split '/x')[-1]
      $UninstallArgs.File       = 'msiexec.exe'
      $UninstallArgs.FileType   = 'MSI'
      $UninstallArgs.SilentArgs = "$ID /qn /norestart /l*v `"$($env:TEMP)\$($env:ChocolateyPackageName).$AppShortVersion.MsiUninstall.log`""
   Uninstall-ChocolateyPackage @UninstallArgs

   # The uninstaller starts an "Au_" process and immediately returns.  
   Write-Host "Despite the line above, $env:ChocolateyPackageName is still uninstalling.  Please wait." -ForegroundColor Cyan
   Get-Process | Where-Object {$_.path -match '.*Temp.*chocolatey.*Au_.exe'} | Wait-Process

   # The QGIS uninstaller sometimes leaves stuff behind
   Get-ChildItem HKLM:\SOFTWARE | 
               Where-Object {$_.name -match "QGIS $AppShortVersion"} | 
               Remove-Item -Recurse -Force 

   # AND it leaves behind dead, public desktop shortcuts
   if (Test-Path "$env:PUBLIC\Desktop\QGIS $AppShortVersion") { 
      Remove-Item "$env:PUBLIC\Desktop\QGIS $AppShortVersion" -Recurse -Force 
   $OrphanedLinks = Get-ChildItem "$env:PUBLIC\Desktop\" -Filter "*.lnk" 
   Foreach ($Item in $OrphanedLinks) {
      $LinkTarget = (new-object -comobject Wscript.Shell).CreateShortcut($Item.FullName).TargetPath
      if ($LinkTarget -match "QGIS $AppShortVersion") {
         Remove-Item $Item.FullName -Recurse -Force 

} elseif ($key.Count -gt 1) {
   Throw 'Multiple, previous installs found!  For safety, no uninstall will occur.'
} elseif ($key.Count -eq 0) {
  Write-Warning "$env:ChocolateyPackageName $AppShortVersion has already been uninstalled by other means."

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
QGIS 1248 Tuesday, April 19, 2022 Exempted
QGIS 3.24.1 15214 Saturday, March 26, 2022 Exempted
QGIS 3.24.0 2854 Saturday, February 26, 2022 Exempted
QGIS 3.22.3 5965 Wednesday, February 2, 2022 Exempted
QGIS 3.22.2 3042 Wednesday, December 29, 2021 Exempted
QGIS 3.22.1 4996 Saturday, November 27, 2021 Exempted
QGIS 3.22.0 3575 Monday, November 1, 2021 Exempted
QGIS 3.20.3 5392 Tuesday, September 14, 2021 Exempted
QGIS 3.20.2 3491 Wednesday, August 18, 2021 Exempted

This package has no dependencies.

Discussion for the QGIS Package

Ground Rules:

  • This discussion is only about QGIS and the QGIS package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or QGIS, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus