Skip to content
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

Feature Request: Installer argument to disable Start on Login #402

Closed
bushelofsilicon opened this issue Sep 1, 2017 · 5 comments
Closed

Comments

@bushelofsilicon
Copy link

I think it might be nice if there was an installer switch that made the config file created with StartSyncthingAutomatically in the config file set to False.

In my deployment I'm setting it so that Syncthing starts automatically for any user who logs into the computer without them having to launch it first to create the Run key value in HKCU.

So this means that my options are.

  1. Create the value in HKLM instead and then manage the SyncTrayzor config file in order to keep StartSyncthingAutomatically set to false so that I don't get duplicate values in HKLM and HKCU (which I don't think there would be any ill effects with duplicates, just isn't very clean)

  2. Use Active Setup in order to create the key under HKCU. This means I might not have to manage the config file, but I kind of feel like putting the value under HKLM is the simpler solution.

So then I feel the simplest solution would be if I could install SyncTrayzor without it creating a Run value in HKCU and then I create my own Run value in HKLM

@bushelofsilicon
Copy link
Author

I just realized I could probably use the portable version and then set my own registry values, however my plan was to install from the chocolately repo

@canton7
Copy link
Owner

canton7 commented Sep 1, 2017

I think it might be nice if there was an installer switch that made the config file created with StartSyncthingAutomatically in the config file set to False.

I'm afraid I can't parse that sentence. "config file created with StartSyncthingAutomatically in the config file"?

The installer can't write the config file. The installer run as an administrator, but the config file is created in the AppData folder of every single user which runs SyncTrayzor. You would have to iterate all users on the computer, impersonate each in turn, and create a config file to each. Even the ones which weren't interested in SyncTrayzor.

The default configuration is stored in SyncTrayzor.exe.config. The intention is that people doing deployments edit this file to taste, and re-package SyncTrayzor. I guess I could let people specify their own version of this file in an installer parameter: that could work.

@bushelofsilicon
Copy link
Author

I guess I could let people specify their own version of this file in an installer parameter: that could work.

Yes! Even better, that would be perfect!

You would have to iterate all users on the computer, impersonate each in turn, and create a config file to each. Even the ones which weren't interested in SyncTrayzor.

You can imagine what I have to do with the Syncthing config file order to get everyone's Desktop and Documents to sync to a central server automatically without any user intervention 😕

@canton7
Copy link
Owner

canton7 commented Sep 3, 2017

@canton7
Copy link
Owner

canton7 commented Sep 3, 2017

(Documentation here)

@canton7 canton7 closed this as completed in b21cc06 Sep 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants