Show Navigation | Hide Navigation
You are here:
Geoprocessing > Automating your work with scripts > Scripting object: Properties and Methods > Properties and Methods

GetInstallInfo method

Release 9.3
Last modified January 19, 2010
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Properties and Methods"

Related Topics

Note: This topic was updated for 9.3.1.

Returns a Python dictionary object of installation properties. The available installation types (desktop, server .net, server java, and engine) can be found using ListInstallations.

A dictionary object is a Python type that consists of key-value pairs. GetInstallInfo returns a dictionary with 11 keys.

NOTE: Supported only when the geoprocessor is instantiated using the arcgisscripting module; not supported when using the win32com module. Learn more about creating the geoprocessor object


object.GetInstallInfo(installType As String) As Dictionary

Part Description
object The instantiated geoprocessing object
installType The installation type:
  • Desktop
  • Engine
  • Server .NET
  • Server Java


import arcgisscripting
gp = arcgisscripting.create(9.3)

installD = gp.GetInstallInfo("desktop")

for key in installD.keys():
    # Use python string formatting to print each key and value in the dictionary
    print "%s : %s" % (key, installD[key])

#An example of expected return:

#SourceDir : N/A
#InstallDate : 06/03/2007
#SPBuild : N/A
#ProductName : ArcGIS Desktop
#BuildNumber :
#InstallType : N/A
#Version : 9.3
#SPNumber : N/A
#Installer : ssmith
#InstallDir : C:\Program Files\ArcGIS
#InstallTime : 15:56:01

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.