-
-
Notifications
You must be signed in to change notification settings - Fork 418
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
Installed version can't be started without adminrights #464
Comments
Can you look at the logs? They'll be in |
Okay will do it when i'm home at friday |
SyncTrayzor.log |
@xoxefdp This is a different issue. Please open your own issue. |
Here the log: I think the problem is, that Syncthing ask at installtion for adminrights and i choice the default install path "C:\Program Files\SyncTrayzor" but now, as not elevated user the following fails (because of group policies): Why SyncTrazor want copy and start syncthing.exe from AppData and not from installed path "C:\Program Files\SyncTrayzor" ? |
Syncthing auto-updates itself, and it needs to be able to do this without admin rights. Therefore I need to run the syncthing executable from a location which the user has write access to, i.e. AppData. I need to get the Syncthing executable from somewhere, and so it's put in Program Files by the installer, and copied to AppData when SyncTrayzor starts for the first time. If you need to run the Syncthing executable from another location, change File -> Settings -> Syncthing -> Syncthing Custom Path, or run the portable version. The actual error you are getting however is
This seems to have nothing to do with running Syncthing from AppData - it seems that SyncTrayzor (or, more correctly, its embedded browser component) is unable to load a particular .NET Assembly (System.Translations.dll), because that's blocked by a group policy. I'm afraid I don't know why that assembly in particular would be blocked by a group policy (it seems that we can load other assemblies just fine). |
That doesnt make sense. If i choice the installed version, which needs admin rights then i will allow the app admin rights if a update is required. AppData is a very bad idea for security and no other programs i know, do that. I change the path, but still SyncTrayzor close without admin rights. |
Again, the location of Synching is not relevant to your prbloblem. Synching's update mechanism requires it to be somewhere the user can write to. I'm sorry if that doesn't make sense to you, but that's how it is and I can't change it. I agree on the security aspect, which is why SyncTrayzor installs itself into Program Files. Synching however does things differently so I need to accommodate that. Plenty of applications have chosen to install into AppData, for example Chrome. However, I suggest you focus on the actual issue here, which is not related to AppData. |
I found that i block user write access to "C:\Windows\Microsoft.NET\assembly" in SRP. Can you maybe say what SyncTrayzor do with that folder? |
As I told you before, you can place Synching in Program Files yourself, and tell SyncTrayzor to use that copy. You are then responsible for keeping that updated. |
That folder is part of .NET. SyncTrayzor uses .NET. I don't think you can block random parts of C:\Windows and expect Windows to keep working... |
Alright. Thanks for helping! Changing path for Syncthing works. No more starting Syncthing.exe from C:\Users%username%\AppData\Roaming\SyncTrayzor I close the issue now. Maybe a notice in readme for other users which have the same problem would be nice |
I choice to use the install (x64) version, so i can get updates and can use the secure Windows program files folder.
But if i start SyncTrayzor.exe then only the window open but close before any text is displayed.
If i run the same exe with adminrights, then all works.
Windows10 x64 with only the normal Windows account and UAC.
Also no error displayed, just program closed.
The text was updated successfully, but these errors were encountered: