HOW TO

Determine the installation location and version of ArcGIS Desktop using Python

Last Published: April 25, 2020

Summary

Instructions provided include a Python script that prints the current install location and version of ArcGIS Desktop.

Procedure


Code:
#PYTHON SCRIPT
import arcgisscripting
gp = arcgisscripting.create(93)

d = gp.GetInstallInfo('desktop')
keys = d.keys()
keys.sort()

for k in keys:
print "%s : %s" % (k, d[k])

import os
os.system("pause")

    Article ID:000010833

    Software:
    • ArcMap

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options

    Discover more on this topic