English

How To: Determine the installation location and version of ArcGIS Desktop using Python

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")