-
Notifications
You must be signed in to change notification settings - Fork 668
DYN-9244 Moving Away ProgramData Fix #16492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DYN-9244 Moving Away ProgramData Fix #16492
Conversation
f you previously used Dynamo 4.0.0 and now with the previous fix try to use it, you will see that is loading packages from C:\ProgramData\Dynamo\Dynamo Core\4.0\packages. The problem is that DynamoSettings.xml in C:\Users\tellro\AppData\Roaming\Dynamo\Dynamo Core\4.0 already contains the entry for ProgramData then you need to delete the Dynamo cache in order to verify my fix. With this fix doesn't matter if the Dynamo cache was deleted or not now it won't be loading any package from the ProgramData path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-9244
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes an issue where Dynamo continues to load packages from the ProgramData directory even after a previous fix was intended to prevent this behavior. The problem occurs when users upgrade from older Dynamo versions that have ProgramData entries cached in their DynamoSettings.xml file.
Key Changes:
- Enhanced package directory filtering to explicitly exclude ProgramData paths
- Added programmatic detection of the ProgramData folder path using Environment.GetFolderPath
|
@RobertGlobant20 Wanna check the Copilot PR review comments? |
Implementing fixes suggested by GitHub Copilot.
QilongTang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment then LGTM
|
@RobertGlobant20 Please merge master into this branch |

Purpose
If you previously used Dynamo 4.0.0 and now with the previous fix try to use it, you will see that is loading packages from C:\ProgramData\Dynamo\Dynamo Core\4.0\packages. The problem is that DynamoSettings.xml in C:\Users\tellro\AppData\Roaming\Dynamo\Dynamo Core\4.0 already contains the entry for ProgramData then you need to delete the Dynamo cache in order to verify my fix.
With this fix doesn't matter if the Dynamo cache was deleted or not, now it won't be loading any package from the ProgramData path.
Declarations
Check these if you believe they are true
Release Notes
Fixing problem that is loading packages from ProgramData due that a previous version of Dynamo that doesn't have my fix was used
Reviewers
@reddyashish @zeusongit @QilongTang
FYIs