Skip to main content

GetInstallInfo

Summary

Returns a dictionary that contains information about the installation.

Syntax

GetInstallInfo()

Return value

Data Type Explanation

Dictionary

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

  • LicenseLevel—The current license level (Basic, Standard, or Advanced)

  • LicenseType—The current license type (Named User or Single Use)

  • ProductName—The product installed (Desktop, Server, Engine, ArcGISPro, or ArcGISAllSource)

  • 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

Code sample

GetInstallInfo example

Get the 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

Get the product version.

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