<?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: Setting Trusted Locations (trustedpath) in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/setting-trusted-locations-trustedpath/m-p/6491445#M35406</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code below lets you extract the name of the current profile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim strActiveProfile As String = Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication.Preferences.Profiles.ActiveProfile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: Another thing you can do is put you dll in default trusted path&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Users\usename\AppData\Roaming\Autodesk\ApplicationPlugins&lt;/P&gt;</description>
    <pubDate>Wed, 10 Aug 2016 13:41:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-10T13:41:39Z</dc:date>
    <item>
      <title>Setting Trusted Locations (trustedpath)</title>
      <link>https://forums.autodesk.com/t5/net-forum/setting-trusted-locations-trustedpath/m-p/6430950#M35405</link>
      <description>&lt;P&gt;I have a .net dll and it is loaded&amp;nbsp;at AutoCAD startup.&lt;/P&gt;&lt;P&gt;But each time it ;loads a&amp;nbsp;security warning is displaying.&lt;/P&gt;&lt;P&gt;After going through the existing solutions understood that this can be avoided if the directory is added to TRUSTEDPATHS variable.&lt;/P&gt;&lt;P&gt;The registry entry for it is "&lt;SPAN&gt;HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R19.1\ACAD-D001:409\Profiles\&amp;lt;&amp;lt;unnamed profile"&amp;gt;&amp;gt;\Variables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i do not know what is&amp;nbsp;&amp;lt;&amp;lt;unnamed profile"&amp;gt;&amp;gt; is it always constant?. if not how to get the current profile name sothat i can use it in the registry path.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;One more thing is i have to update the above registry path in the installer code to avoid warning even for the first time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please, Can someone help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mohan.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 10:23:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/setting-trusted-locations-trustedpath/m-p/6430950#M35405</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-12T10:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Trusted Locations (trustedpath)</title>
      <link>https://forums.autodesk.com/t5/net-forum/setting-trusted-locations-trustedpath/m-p/6491445#M35406</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code below lets you extract the name of the current profile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim strActiveProfile As String = Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication.Preferences.Profiles.ActiveProfile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: Another thing you can do is put you dll in default trusted path&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Users\usename\AppData\Roaming\Autodesk\ApplicationPlugins&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 13:41:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/setting-trusted-locations-trustedpath/m-p/6491445#M35406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-10T13:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Trusted Locations (trustedpath)</title>
      <link>https://forums.autodesk.com/t5/net-forum/setting-trusted-locations-trustedpath/m-p/6491631#M35407</link>
      <description>&lt;P&gt;This post should help you out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net/adding-trusted-locations-via-dll-vb-net/td-p/4960848" target="_self"&gt;http://forums.autodesk.com/t5/net/adding-trusted-locations-via-dll-vb-net/td-p/4960848&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 14:31:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/setting-trusted-locations-trustedpath/m-p/6491631#M35407</guid>
      <dc:creator>Keith.Brown</dc:creator>
      <dc:date>2016-08-10T14:31:26Z</dc:date>
    </item>
  </channel>
</rss>

