GetInstallInfo method |
|
|
Release 9.3
Last modified January 19, 2010 |
Print all topics in : "Properties and Methods" |
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
| Part | Description |
| object | The instantiated geoprocessing object |
| installType | The installation type:
|
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 : 09.30.00.01377
#InstallType : N/A
#Version : 9.3
#SPNumber : N/A
#Installer : ssmith
#InstallDir : C:\Program Files\ArcGIS
#InstallTime : 15:56:01