Skip to content

[BUG] "Store config at the assembly location" not working for "protected folder locations" #321

@chip33

Description

@chip33

Description, Steps to reproduce, Expected behavior, Screenshots

Windows 11 Pro 22000.469, latest stable release.
SystemTrayMenu 1.2.6.0

I saw that you see reports from users and try to fix them.

I noticed that sometimes "Store config at the assembly location" does not place a user.config there and the tick does not stick in the settings box.
I think this is due to windows permissions blocking it when it is located in a protected location like "Program Files".

I have UAC at minimum and run as administrator, Windows will not let me for example create a zip of a file or drop a browser bookmark shortcut into folders in "Program Files".
The easiest way to test that strict permissions are in force on that folder is by right clicking a file and trying to make a shortcut of it. If you get this message you know access is restricted.

Screenshot 2022-02-07 162248

You should be able to reproduce this by moving the STM assembly location folder with an active user.config inside to a protected folder location, launch a new instance of STM from there and when you try to change settings in STM it will crash as it tries to edit the user.config and fails.

Screenshot 2022-02-07 164232

Here if you try to create a new user.config it will not be created and the tickbox for "Store config at the assembly location" will remain unchecked.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions