Returns a collection of the currently available ArcGIS installations.

Namespace:  ESRI.ArcGIS

Assembly:  ESRI.ArcGIS.Version (in ESRI.ArcGIS.Version.dll) Version: 10.0.0.0 (10.0.0.0)

Syntax

C#
public static IEnumerable<RuntimeInfo> InstalledRuntimes { get; }
Visual Basic (Declaration)
Public Shared ReadOnly Property InstalledRuntimes As IEnumerable(Of RuntimeInfo)
Visual C++
public:
static property IEnumerable<RuntimeInfo^>^ InstalledRuntimes {
	IEnumerable<RuntimeInfo^>^ get ();
}

Field Value

The available installations.

Remarks

Returns all of the available ArcGIS installations present on the machine.

Examples

The code below shows how to get the collection of the currently available ArcGIS installations.
CopyC#
IEnumerable<RuntimeInfo> info = RuntimeManager.InstalledRuntimes;
foreach (RuntimeInfo item in info)
{
  System.Diagnostics.Debug.Print(item.Path);
  System.Diagnostics.Debug.Print(item.Version);
  System.Diagnostics.Debug.Print(item.Product.ToString());
}

bool succeeded = ESRI.ArcGIS.RuntimeManager.Bind(ProductCode.EngineOrDesktop);
if (succeeded)
{
  RuntimeInfo activeRunTimeInfo = RuntimeManager.ActiveRuntime;
  System.Diagnostics.Debug.Print(activeRunTimeInfo.Product.ToString());
}
CopyVB.NET
Dim info As IEnumerable(Of RuntimeInfo) = RuntimeManager.InstalledRuntimes
For Each item As RuntimeInfo In info
  System.Diagnostics.Debug.Print(item.Path)
  System.Diagnostics.Debug.Print(item.Version)
  System.Diagnostics.Debug.Print(item.Product.ToString())
Next

Dim succeeded As Boolean = ESRI.ArcGIS.RuntimeManager.Bind(ProductCode.EngineOrDesktop)
If succeeded Then
  Dim activeRunTimeInfo As RuntimeInfo = RuntimeManager.ActiveRuntime
  System.Diagnostics.Debug.Print(activeRunTimeInfo.Product.ToString())
End If

See Also