Map Service - Geodatabase location

Discussion created by gwilkins58 on Jun 12, 2014
Latest reply on Jun 24, 2014 by MBranscomb-esristaff

As part of our application we want to ensure that our GPKs are always using the same geodatabase that the currently loaded map package is using. To achieve this we are passing in the path to the GDB on disk to our geoprocessing packages.

We have set the AppDataPath so we can control where the runtime extracts the MPK (which contains our Geodatabase), but we are unsure how to work out the path to the GDB precisely as the packages under ???%AppDataPath%\Documents\ArcGIS\Packages\??? use GUIDs in their names.

Is it possible to find out using the runtime the exact location of the geodatabase that the MPK is using?