Select to view content in your preferred language

Programatic start of ArcGISExplorer

2720
3
11-01-2011 09:02 AM
RobHaynes
Emerging Contributor
With version 1700 I looked in the registry under the path "HKEY_CURRENT_USER\Software\ESRI\Explorer1700\InstallDir" to find the path to where it was installed.  I then appended "bin\e3.exe" to the path and used "ShellExecute" to startup ArcGis Explorer.  For version 1750, that registry path does not exist anymore.

How do I find the path to the ArcGISExplorer executable so I can start it from a separate program?
0 Kudos
3 Replies
JurajMalega
Deactivated User
hi
try this...VB.NET

Dim path As String
path = Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFiles)
or
path = Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFilesX86)

Dim openExplorer As New Process
openExplorer.StartInfo.FileName = path + "\Explorer\bin\E3.exe"
openExplorer.Start()

hope its help!
0 Kudos
RobHaynes
Emerging Contributor
That won't work if the user decides to choose a directory other than program files.  In a 32-bit program if you open the registry HKEY_LOCAL_MACHINE\SOFTWARE\ESRI\Explorer1750 and look for InstallDir, you can get the path.  If you are running 64-bit it will be HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ESRI\Explorer1750.
0 Kudos
ManojrajTeli
Deactivated User
Process.Start("Path") can also serve the purpose
0 Kudos