ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

GetInstallInfo

  • Summary
  • Syntax
  • Code sample

Summary

Returns a dictionary that contains information about the installation.

Syntax

GetInstallInfo ()

Return Value

Data TypeExplanation
Dictionary

The function returns a dictionary containing the properties of the installation.

The dictionary keys are as follows:

  • BuildNumber—The build number.
  • InstallDate—The installation date.
  • InstallDir—The installation location.
  • InstallTime—The time of installation.
  • InstallType—The installation type (or N/A).
  • Installer—The installer of the installation.
  • ProductName—The product installed (Desktop, Server, Engine, or ArcGISPro).
  • SPBuild—The service pack build (or N/A).
  • SPNumber—The service pack build number (or N/A).
  • SourceDir—The source directory.
  • Version—The product version.

Note:

Starting at ArcGIS Desktop 10.8.2, the version key returns a value that starts with 10.9.

Code sample

GetInstallInfo example

Return installation information.

import arcpy

# Use the dictionary iteritems to iterate through the key/value pairs from 
# GetInstallInfo.
d = arcpy.GetInstallInfo()
for key, value in list(d.items()):
    # Print a formatted string of the install key and its value
    print("{:<13} : {}".format(key, value))
GetInstallInfo example 2

Return the product version.

import arcpy
print(arcpy.GetInstallInfo()['Version'])

Related topics

  • ListInstallations
  • Accessing licenses and extensions in Python

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal