-
Notifications
You must be signed in to change notification settings - Fork 42
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
Create syncthingtray installer for windows #180
Comments
I don't plan working on this. Contributions are welcome of course (similar to how it has already been done for certain GNU/Linux distributions, see https://github.com/Martchus/syncthingtray#packages-and-binaries). I have been pondering about implementing something different instead. One feature that has come to my mind is allowing the creation of a desktop icon and start menu entry via the wizard (besides the existing ability to configure the auto start). This would be a cross-platform feature. Under Windows it would also make sense to allow moving the binary to a default/custom application directory creating an entry in the Application Registration. This way the installer part would be cross-platform (as far as possible), the actual application could be the same binary and the installation would be neatly integrated with the general setup. Of course an uninstall button could also be added somewhere and the uninstall action for the Application Registration could also just trigger it (by invoking the main application via certain CLI args, similar to how the web UI can already be triggered). I have also been considering adding an auto-update feature similar to what Syncthing itself provides. This would then of course also allow one to restart Syncthing Tray if wanted. I haven't implemented any of this yet due to lack of time and motivation. However, that's how I would move this forward - instead of implementing a Windows-specific installer (possibly using some additional installer framework). Note that I'd preferably implemented this within the qtutilities library so all my applications can benefit from this without extra effort (although code can of course be moved later as well). |
For the restarting part I've just introduced the When I find the time to implement an auto-update feature as mentioned in my previous comment I'm also going to make use of that mechanism. |
How should I use the
The error message is "connection refused" in English I guess. |
I think there are multiple problems:
I can try to improve the 2nd point. I'm going to make another patch release very soon because I've noticed some annoying regressions. I'm not sure whether I can improve this already as part of this next patch release. And to answer your question: Just appending |
Thanks for the hint. I'm testing For the chocolatey package, the replaced version is likely the older one, so I keep current package scripts. I will revisit
Yes this sounds like the cause. I'm using the built-in launcher, and I found the following messages in Settings -> Startup -> Syncthing launcher -> Syncthing log when the error occurs:
|
I've just created a new release but haven't taken care of this yet. By the way, are you using the built-in library or an external application? I've only tested it with the built-in library so far (where I also sometimes ran into "Error opening database"). It always helped to simply start Syncthing again in the launcher settings. So the database lock seems to be released eventually and the 2nd instance is just too fast. |
I'm using the built-in (bundled) syncthing, and I can confirm restart syncthing in settings works. |
So `Launcher::terminate()` exits when really everything has terminated and not just sub processes. It may nevertheless be worthwhile to implement a timeout. This may help with #180 (comment).
Maybe |
I guess the installer/updater I'd implement at some point would simply move away the old executable while it is running (this should work even under Windows) and move the new executable where the old one was. It would then invoke the new executable with Maybe you needed a |
Good point, I just implemented that in relevant chocolatey packaging scripts. |
Hey @yan12125 I just saw your comment from a few minutes ago. I am getting an error when trying to install with chocolatey.
Any ideas on why this is not working? It has not been working since yesterday. Thanks! |
Probably something wrong during downloads. Anyway this is more likely a chocolatey issue than a syncthingtray one, so https://gitlab.com/yan12125/chocolatey-packages or https://community.chocolatey.org/packages/syncthingtray#discussion is a better place for further discussions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Not stale. |
Am also experiencing the checksum errors when I tried installing it. The ftp download is also extremely slow |
What checksums are you talking about? I do not even provide downloads via FTP. |
Ah sorry, after reading the above comments, I realize I should bring that in the chocolatey package repository. It happens when I try installing this chocolatey package |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still interested. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is there any chance you guys could use Syncthing Windows Setup project to make a windows installer? |
I guess it would be best if that installer would include Syncthing Tray if that is wanted. Probably the creator/maintainer of that installer doesn't use Syncthing Tray, though. I personally don't need/want the sophisticated setup this installer aims for so I wouldn't put any effort into utilizing that myself. In fact, I generally prefer the simple setup Syncthing Tray currently offers. As already stated in #180 (comment) this is something other contributors are welcome provide, though. Note that you can use Syncthing Tray together with the Syncthing itself installed via Syncthing Windows Setup, see https://github.com/Martchus/syncthingtray/blob/master/README.md#does-this-launch-or-bundle-syncthing-itself-what-about-my-existing-syncthing-installation. |
Yea the installer would be nice literally just need to move the program to a different directory (like appdata) and then execute it as it already does. I see 90% of users leaving it in their downloads folder and then if they clear that out accidentally delete it lmao |
Relevant components
Is your feature request specific to a certain platform/environment? Please specify.
Windows 10/11.
Is your feature request related to a problem? Please describe.
Right now syncthingtray does not have installer, which creates problems like this in chocolatey https://gitlab.com/yan12125/chocolatey-packages/-/issues/2
Describe the solution you'd like
Have installer will make installation easy, and installer can also restart syncthingtray after updating (which choco package currently don't do)
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: