<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Is it possible to find an unpacked location of an mpk programmatically? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-find-an-unpacked-location-of-an/m-p/762761#M20199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have C# code that uses the app.config file to locate a map package ( &amp;lt;add key="EsriRuntimeEditingMapPackageLocation" value="C:/Projects//MyEditingMap.mpk"/&amp;gt; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This map package is used by the Editor Widget to edit feature classes.&amp;nbsp; I need to be able to programmatically access the &lt;/SPAN&gt;&lt;STRONG&gt;unpacked location&lt;/STRONG&gt;&lt;SPAN&gt; of this map package.&amp;nbsp; I know that I can right-click on the mpk file in Arc Catalog and select Properties, and the ???Unpacked Location??? is indicated.&amp;nbsp; However, I need this path to be returned in the form of a string in my code.&amp;nbsp; Is there a way to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked into using ArcGISFileHandler but didn't know how I could use this executable for my purposes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Oct 2013 14:13:07 GMT</pubDate>
    <dc:creator>ReneeCammarere</dc:creator>
    <dc:date>2013-10-02T14:13:07Z</dc:date>
    <item>
      <title>Is it possible to find an unpacked location of an mpk programmatically?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-find-an-unpacked-location-of-an/m-p/762761#M20199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have C# code that uses the app.config file to locate a map package ( &amp;lt;add key="EsriRuntimeEditingMapPackageLocation" value="C:/Projects//MyEditingMap.mpk"/&amp;gt; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This map package is used by the Editor Widget to edit feature classes.&amp;nbsp; I need to be able to programmatically access the &lt;/SPAN&gt;&lt;STRONG&gt;unpacked location&lt;/STRONG&gt;&lt;SPAN&gt; of this map package.&amp;nbsp; I know that I can right-click on the mpk file in Arc Catalog and select Properties, and the ???Unpacked Location??? is indicated.&amp;nbsp; However, I need this path to be returned in the form of a string in my code.&amp;nbsp; Is there a way to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked into using ArcGISFileHandler but didn't know how I could use this executable for my purposes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 14:13:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-find-an-unpacked-location-of-an/m-p/762761#M20199</guid>
      <dc:creator>ReneeCammarere</dc:creator>
      <dc:date>2013-10-02T14:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to find an unpacked location of an mpk programmatically?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-find-an-unpacked-location-of-an/m-p/762762#M20200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know whether there is an API to provide you with the directory you seek.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you can't get this then you always have the option of unpacking it yourself.&amp;nbsp; My guess is that the mpk is just a renamed zip file.&amp;nbsp; There are various open source libraries that you can find which does this.&amp;nbsp; We use DotNetZip.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 22:07:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-find-an-unpacked-location-of-an/m-p/762762#M20200</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-10-02T22:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to find an unpacked location of an mpk programmatically?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-find-an-unpacked-location-of-an/m-p/762763#M20201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As it turns out, I took a different approach to this problem.&amp;nbsp; Rather than attempting to access the name of the unpacked location, I re-created the map package, and this time I selected the option "Reference all data", so that the edits would be saved in the location referenced in the map document.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 01:10:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-find-an-unpacked-location-of-an/m-p/762763#M20201</guid>
      <dc:creator>ReneeCammarere</dc:creator>
      <dc:date>2013-10-03T01:10:22Z</dc:date>
    </item>
  </channel>
</rss>

