ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Aide
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plateforme cartographique de votre organisation

ArcGIS Desktop

Un SIG professionnel complet

ArcGIS Enterprise

SIG dans votre entreprise

ArcGIS for Developers

Outils de création d'applications de localisation

ArcGIS Solutions

Modèles d'applications et de cartes gratuits pour votre secteur d'activité

ArcGIS Marketplace

Téléchargez des applications et des données pour votre organisation.

  • Documentation
  • Support
Esri
  • Se connecter
user
  • Mon profil
  • Déconnexion

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

GetInstallInfo

  • Résumé
  • Discussion
  • Syntaxe
  • Exemple de code

Résumé

Returns a data dictionary that contains information on the installation type properties for the current version of the Esri Mapping and Charting solutions software installed on a particular machine.

Discussion

A Python developer sometimes needs to get the exact version of the Esri Mapping and Charting solutions software that is installed on a particular machine. This function returns a data dictionary of values, so you can limit your Python scripts to run only on a specific release of the software.

Syntaxe

GetInstallInfo ()

Valeur renvoyée

Type de donnéesExplication
Dictionary

The function returns a data dictionary containing the properties of the installation.

KeysValues

SourceDir

Source directory

InstallDate

Date of installation

ProductName

Product installed (Desktop, Server, Engine)

BuildNumber

The build number

InstallType

The installation type (or N/A)

Version

The product version

SPNumber

Service pack build number (or N/A)

Installer

Account installed by

InstallDir

Installation location

InstallTime

Time of installation

GetInstallInfo's dictionary object keys

Exemple de code

GetInstallInfo example 1

Return installation information.

import arcpyproduction

# Use the dictionary iteritems to iterate through 
#   the key/value pairs from GetInstallInfo
d = arcpyproduction.GetInstallInfo()
for key, value in d.iteritems():
    # Print a formatted string of the install key and its value
    #
    print("{:<13} : {}".format(key, value))
GetInstallInfo example 2

Return the product version.

import arcpyproduction

print(arcpyproduction.GetInstallInfo()['Version'])

ArcGIS Desktop

  • Accueil
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

A propos d'Esri

  • A propos de la société
  • Carrières
  • Blog des initiés
  • Conférence des utilisateurs
  • Sommet des développeurs
Esri
Donnez-nous votre avis.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Confidentialité | Légal