windows 11 add in folder location issue

windows 11 add in folder location issue

bradeneuropeArthur
Mentor Mentor
527 Views
3 Replies
Message 1 of 4

windows 11 add in folder location issue

bradeneuropeArthur
Mentor
Mentor

Hi,

 

In windows 11 the user folder for the add-ins, is different then the windows 10 folder.

windows 10 defined "C:\Users\arthurknoors\AppData\Roaming"

windows 11 defines now "C:\Users\arthu\AppData\Roaming" which uses only the first 5 characters of the user name.

 

In the Inventor add-in templates provide from Autodesk is still defining the path with the username complete.

"C:\Users\arthurknoors\AppData\Roaming"

 

like in this article:

https://www.makeuseof.com/windows-11-change-user-profile-folder-name/

 

how to solve the issue from exporting the add-ins to a different location for both windows 10 and windows 11 machines. I do not want to create a different built for these environtment.

 

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

528 Views
3 Replies
Replies (3)
Message 2 of 4

JelteDeJong
Mentor
Mentor

I don't know whet tool you use for "exporting the add-ins", but in most tools, you can use variables. You could work around the problem by using the variable %appdata% instead of "C:\Users\arthurknoors\AppData\Roaming".

If you created your own tool for exporting the add-ins then you could use this line of code to get the correct path:

Dim myInstalationPath As String = System.Environment.ExpandEnvironmentVariables("%APPDATA%\Autodesk\ApplicationPlugins")
'result: C:\Users\hjalte\AppData\Roaming\Autodesk\ApplicationPlugins

(I don't have Windows 11 so I only assume this works.)

Another option would be to make your addon not user-specific and not save the addin in the user profile. We have these 4 locations to save our addins. 2 of those are not in the user profile.

 

Your addin is for all Users, Version Independent
Windows 7/8.1/10 - %ALLUSERSPROFILE%\Autodesk\Inventor Addins\

 

Your addin is for all Users, Version Dependent
Windows 7/8.1/10 - %ALLUSERSPROFILE%\Autodesk\Inventor 20xx\Addins\

 

Your addin is user-specific, Version Dependent
In Window 7/8.1/10 - %APPDATA%\Autodesk\Inventor 20xx\Addins\

 

Your addin is user-specific, Version Independent
In Window 7/8.1/10 - %APPDATA%\Autodesk\ApplicationPlugins

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 3 of 4

bradeneuropeArthur
Mentor
Mentor
Think that the last win update solved this issue.

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 4 of 4

bradeneuropeArthur
Mentor
Mentor

Still there is something weird with the excisting add ins from before windows 11.

The the post event works well with debug, but not with the release.

 

This is the Post built from the standard add-in template:

 

WHERE MT.EXE
IF ERRORLEVEL 1 call "$(DevEnvDir)..\..\VC\Auxiliary\Build\vcvarsall.bat" amd64
mt.exe -manifest "$(ProjectDir)KnoorsInventorToolsRenameSolidBodies.X.manifest" -outputresource:"$(TargetPath)";#2
			XCopy "$(TargetPath)" "%AppData%\Autodesk\ApplicationPlugins\$(TargetName)\" /Y /R
		    XCopy "$(ProjectDir)Autodesk.KnoorsInventorToolsRenameSolidBodies.Inventor.addin" "%AppData%\Autodesk\ApplicationPlugins\$(TargetName)\" /Y /R

For the build debug it accepts the path without error.

For the build release it does not and comes with an error.

cannot find path;

C:\Users\arthurknoors\AppData\Roaming.

 

The actual path with %Apdata% is C:\Users\arthu\AppData...

 

Is there someone with the same issue?

 

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes