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

Autostart does nothing, never autostarts #39

Closed
ToothyDev opened this issue Sep 4, 2024 · 9 comments
Closed

Autostart does nothing, never autostarts #39

ToothyDev opened this issue Sep 4, 2024 · 9 comments

Comments

@ToothyDev
Copy link

When installing syncthing on Windows, it gives you a toggle on whether you want it to start on user logon. Yet, it does nothing. It doesn't start on logon, nor does it register a service, put a shortcut in the startup folder or even just a task scheduler entry. Nothing. Why have this toggle if it does nothing? This happens regardless of running syncthing's installer with admin or not.

@Bill-Stewart
Copy link
Owner

...it gives you a toggle on whether you want it to start on user logon.

By "toggle" I assume you mean "check box." Which specific check box are you referring to?

I just tested the 1.27.11 installer on a Windows 11 machine, and all of the automatic startup stuff worked just fine for both current user and installing as a service.

Yet, it does nothing.

You're going to have to be more specific about what you mean. (Remember, nobody can see your screen!)

This happens regardless of running syncthing's installer with admin or not.

What, specifically, "happens" (or doesn't "happen")?

The behavior of the installer is very different between the non administrative (per user) and administrative (per computer) installation modes.

Have you reviewed the documentation?

(Again: Remember that nobody can see your screen.)

@ToothyDev
Copy link
Author

I'm talking about this checkbox
image
It's selected by default (i also tried unchecking and rechecking it), though, well, nothing happens apparently (as i said, no service or task scheduler or anything i can find) and syncthing does indeed not start on login even after giving it a few minutes. I'm using the per user mode.
I'm on Windows 11 as well, latest update and all. For funs i also tried checking the toggle below that only autostarts when connected to AC (i dont have a laptop but might as well) but equally, no autostart

@ToothyDev
Copy link
Author

Also, I just remembered that i get the following error when installing, everytime and even with admin
image
Might be related

@Bill-Stewart
Copy link
Owner

Yes. You need to fix that error first.

@Bill-Stewart
Copy link
Owner

See this issue also:

#20

This is not a Syncthing Windows Setup issue but rather something broken on your machine. I can't reproduce it.

@Bill-Stewart Bill-Stewart closed this as not planned Won't fix, can't repro, duplicate, stale Sep 4, 2024
@ToothyDev
Copy link
Author

Alright, I did some digging and found a fix. Thought it might help others to keep this here

I went to HKEY_CLASSES_ROOT\.js in the registry and changed (Default) back to JSFile. PHPstorm (which i don't even have installed anymore) was still registered there, and after rerunning the install, syncthing also properly set up a task in the task scheduler.

@Bill-Stewart
Copy link
Owner

Thanks for the update and the fix!

@yatmund
Copy link

yatmund commented Oct 2, 2024

Alright, I did some digging and found a fix. Thought it might help others to keep this here

I went to HKEY_CLASSES_ROOT\.js in the registry and changed (Default) back to JSFile. PHPstorm (which i don't even have installed anymore) was still registered there, and after rerunning the install, syncthing also properly set up a task in the task scheduler.

Thanks for this! No idea how my one got borked, but this did the trick!

@Bill-Stewart
Copy link
Owner

The next version of Setup will check if this value is correct and abort the install if it's missing or incorrect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants