<?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: User-dependent path for .addin files in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/user-dependent-path-for-addin-files/m-p/13068684#M5637</link>
    <description>Thank you for your reply Pineapple2024.&lt;BR /&gt;Sadly this does not suffice since we don't want to deploy the .dll's locally to the user, because then they would have to update their local file when we do updates to our AddIns.&lt;BR /&gt;We were hoping to have one central deployment folder, so that we only have to setup the addin files for each user initially.</description>
    <pubDate>Mon, 07 Oct 2024 08:31:26 GMT</pubDate>
    <dc:creator>ziyad_nuwayhid</dc:creator>
    <dc:date>2024-10-07T08:31:26Z</dc:date>
    <item>
      <title>User-dependent path for .addin files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/user-dependent-path-for-addin-files/m-p/13059864#M5634</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to have a user-dependent for the &amp;lt;Assembly&amp;gt; property in the .addin files?&lt;BR /&gt;We want to be able to place the .dll files in a sharepoint folder and have the addin file point towards there.&lt;/P&gt;&lt;P&gt;But the path where our sharepoint folder is synced is in the user folder.&lt;/P&gt;&lt;P&gt;The path would look like this :&lt;/P&gt;&lt;LI-CODE lang="general"&gt;&amp;lt;Assembly&amp;gt;C:\Users\user.name\Company_SharePoint\InventorExporter.dll&amp;lt;/Assembly&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;From my understanding every user would have to to replace user.name with their user.&lt;/P&gt;&lt;P&gt;Is there a way to use something like C#'s&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)&lt;/LI-CODE&gt;&lt;P&gt;to get the user folder or do we have to find a solution outside the user folder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you and Kind Regards&lt;/P&gt;&lt;P&gt;Ziyad&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 14:28:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/user-dependent-path-for-addin-files/m-p/13059864#M5634</guid>
      <dc:creator>ziyad_nuwayhid</dc:creator>
      <dc:date>2024-10-02T14:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: User-dependent path for .addin files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/user-dependent-path-for-addin-files/m-p/13059934#M5635</link>
      <description>&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-52422162-1784-4E8F-B495-CDB7BE9987AB" target="_blank"&gt;https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-52422162-1784-4E8F-B495-CDB7BE9987AB&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The following four locations are supported. You can choose any one of the four depending on the needs of your add-in. Your .addin file can exist in any one of the following four locations or any subdirectory. The "%XXXX%" portion of each of the paths is an operating system defined variable. When using Explorer you can enter it as part of the path and Explorer will evaluate it to use the actual path defined by the variable.&lt;/P&gt;&lt;P&gt;All Users, Version Independent&lt;BR /&gt;Windows 7/8.1/10 - %ALLUSERSPROFILE%\Autodesk\Inventor Addins\&lt;BR /&gt;All Users, Version Dependent&lt;BR /&gt;Windows 7/8.1/10 - %ALLUSERSPROFILE%\Autodesk\Inventor 20xx\Addins\&lt;BR /&gt;Per User, Version Dependent&lt;BR /&gt;In Window 7/8.1/10 - %APPDATA%\Autodesk\Inventor 20xx\Addins\&lt;BR /&gt;Per User, Version Independent&lt;BR /&gt;In Window 7/8.1/10 - %APPDATA%\Autodesk\ApplicationPlugins&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 14:50:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/user-dependent-path-for-addin-files/m-p/13059934#M5635</guid>
      <dc:creator>Pineapple2024</dc:creator>
      <dc:date>2024-10-02T14:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: User-dependent path for .addin files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/user-dependent-path-for-addin-files/m-p/13060696#M5636</link>
      <description>&lt;P&gt;You could run a Powershell script like this after you have installed the addin.&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;$path = 'C:\ProgramData\Autodesk\ApplicationPlugins\test.addin'

$xml = [xml](Get-Content $path)

$node = $xml.SelectSingleNode('//Addin/Assembly')
$node.InnerText = $env:USERPROFILE + '\Company_SharePoint\InventorExporter.dll'

$xml.Save($path)&lt;/LI-CODE&gt;
&lt;P&gt;(Pro tip: You could do the complete installation using PowerShell)&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 20:02:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/user-dependent-path-for-addin-files/m-p/13060696#M5636</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2024-10-02T20:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: User-dependent path for .addin files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/user-dependent-path-for-addin-files/m-p/13068684#M5637</link>
      <description>Thank you for your reply Pineapple2024.&lt;BR /&gt;Sadly this does not suffice since we don't want to deploy the .dll's locally to the user, because then they would have to update their local file when we do updates to our AddIns.&lt;BR /&gt;We were hoping to have one central deployment folder, so that we only have to setup the addin files for each user initially.</description>
      <pubDate>Mon, 07 Oct 2024 08:31:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/user-dependent-path-for-addin-files/m-p/13068684#M5637</guid>
      <dc:creator>ziyad_nuwayhid</dc:creator>
      <dc:date>2024-10-07T08:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: User-dependent path for .addin files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/user-dependent-path-for-addin-files/m-p/13068686#M5638</link>
      <description>This isn't quite what we want, but it comes closest. Thank you</description>
      <pubDate>Mon, 07 Oct 2024 08:31:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/user-dependent-path-for-addin-files/m-p/13068686#M5638</guid>
      <dc:creator>ziyad_nuwayhid</dc:creator>
      <dc:date>2024-10-07T08:31:54Z</dc:date>
    </item>
  </channel>
</rss>

