<?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 Re: Custom Toolbar Installation Path in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-toolbar-installation-path/m-p/268612#M6898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there anyway to recall the installation path of a custom dll?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The location, where your assembly is installed/resides can be retrieved like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;string path = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you let the user install to a "protected" location (like c:\program files\something) you might need Administrator privileges to write to a file at the same path from your application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 May 2012 11:03:14 GMT</pubDate>
    <dc:creator>AndryJoos</dc:creator>
    <dc:date>2012-05-04T11:03:14Z</dc:date>
    <item>
      <title>Custom Toolbar Installation Path</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-toolbar-installation-path/m-p/268611#M6897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've created a custom toolbar and a setup program (in .net) to install the toolbar.&amp;nbsp; This all works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The toolbar has a custom bookmark function that saves data in a text file for storage/retrieval.&amp;nbsp; The problem I have is that I've stored this file in a folder under the toolbar installation folder and I need to recall this location programatically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to avoid doing something like making an environment variable to hold the custom dll installation path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anyway to recall the installation path of a custom dll?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 20:38:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-toolbar-installation-path/m-p/268611#M6897</guid>
      <dc:creator>MartinLewis</dc:creator>
      <dc:date>2012-05-03T20:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Toolbar Installation Path</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-toolbar-installation-path/m-p/268612#M6898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there anyway to recall the installation path of a custom dll?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The location, where your assembly is installed/resides can be retrieved like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;string path = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you let the user install to a "protected" location (like c:\program files\something) you might need Administrator privileges to write to a file at the same path from your application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 11:03:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-toolbar-installation-path/m-p/268612#M6898</guid>
      <dc:creator>AndryJoos</dc:creator>
      <dc:date>2012-05-04T11:03:14Z</dc:date>
    </item>
  </channel>
</rss>

