Stop making huge folder tree in user profile #2262
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The installer accidentally creates a huge folder tree in the user's profile directory. 820 empty folders are created by the installer, which is the entire folder structure of
C:\SasView
but without any contents in it:The culprit is the
Flags: recursesubdirs createallsubdirs
entry ininstaller.iss
. I guess that was added there assuming that it would create just the~/.sasview/config
directory.There's a couple of things to do here:
I'd add a further item: the installer when run in "Install for everyone mode" (which is the default and what the installer itself recommends) should not attempt to touch anything in the user's profile directory. Ideally, we'd drop the entry for
plugin_models
too and allow that to be created on first run.