Commit Graph
23 Commits
Author SHA1 Message Date
Kenneth Skovhede b264e52a7a Fixed running server in-process from the WindowsService. This fixes the MSI not cleanly restarting a running service. 2026-06-01 16:45:00 +02:00
Kenneth Skovhede 13f9800aee Improved upgrade flow with a service 2026-06-01 09:30:16 +02:00
Kenneth Skovhede 025f25711e Moved more logic from the MSI into WindowsService so we can manage it from C# code, which simplifies the logic in the MSI but adds a bit more scripting dependence.
The logic is now that there is a `Service` registry key that is locked down and used to communicate with the service. The service will refuse to use the key if it does not have the correct permissions.

Another key, `InstallState` is user readable and is used to keep track of what is installed with the MSI, and also communicates back if the initial password was applied.
2026-05-31 10:26:40 +02:00
Kenneth Skovhede 5fdcc644d7 Fix missing semicolon 2026-05-29 13:42:09 +02:00
Kenneth Skovhede 6bea04e2a5 Fixed logic to avoid resetting the password when re-installing the service. 2026-05-29 12:38:13 +02:00
Kenneth Skovhede a0e672f2cf Added support for configuring TLS certificates as part of the install 2026-05-28 22:57:25 +02:00
Kenneth Skovhede 5e35a965c4 Added support for setting a random password on install and storing this in the users credentials manager, such that regular user-installs will work with a service and desktop console. 2026-05-28 11:02:14 +02:00
Kenneth Skovhede c0f40e19ca Updated copyright year to 2026 across the project 2026-04-16 15:21:24 +02:00
Kenneth SkovhedeandGitHub 9464caf622 Feature/update license 2025 (#5851)
* Fixed some minor whitespace issues

* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
Kenneth SkovhedeandGitHub 68627c06bf Feature/alternate windows eventlog (#5784)
* Improved Windows Eventlog support.

Added support for logging to a different log with a Log:Source format.
Backwards compatible by treating "Source" as "Application:Source", where "Source" is default "Duplicati".

* Changed default log-level for eventlog to `Warning`.
This fixes #5770

* Fixed issue where checking for event log would crash the process.
Changed default log to `Duplicati` (was `Application`).
New default source names for service, agent and server.

* Reverted windows log-level back to information, now that there is a separate log for it

* Using "Duplicati 2" as the log name because "Duplicati" may be registered as a source name.

* Attempt to stop service before uninstalling

* Added additional diagnostics messages

* Fixed bug with starting the agent as a service

* Default to not use WindowsService for Agent as it requires permissions to create the event log

* Reduced log message levels for ongoing communication in agent

* Prevent double-logging from agent into Windows EventLog

* Made the agent log under a separate log source name
2024-12-20 16:09:42 +01:00
Kenneth Skovhede 669e90704d Initial work on supporting a secure remote control connection. 2024-09-18 11:07:59 +02:00
Kenneth Skovhede 81e09ad28d WindowsService now logs to eventlog.
This fixes #5476
2024-08-27 16:25:43 +02:00
Kenneth Skovhede 2a817fe093 Implemented support for setting the Windows Service description 2024-08-27 14:08:52 +02:00
Kenneth Skovhede 473c6cbbb8 Merge commit '4f577c65a4d8806f79637c50c21ca3a683c5a07a' into feature/kestrel-avalonia-upgrade 2024-03-04 12:21:53 +01:00
Kenneth Skovhede 40dd3c6816 Updated all license mentions to MIT 2024-02-28 15:45:30 +01:00
Max 41a5591532 upstream 2019-12-25 16:34:56 +01:00
Kenneth Hsu 2aa76881a5 Mark fields that don't need to be reassigned as readonly.
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2019-10-19 13:59:22 -07:00
Michal Naiman 81ed86ec7d convert WindowsService 2019-05-01 21:30:22 +02:00
Kenneth Hsu f12858e6a5 Mark fields that shouldn't be reassigned as readonly.
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2018-05-25 10:04:52 -07:00
Max fecd10e7ca Prevent flooding EventLog with: The Duplicati service service has reported an invalid current state 0. 2016-10-22 23:25:30 +02:00
Kenneth Skovhede 3441bdb1c5 Tabs-to-spaces fix 2016-09-23 14:11:53 +02:00
Kenneth Skovhede afa9924f30 Made the WindowsService self-installable with parameter support.
This fixes #1768
2016-09-15 14:39:19 +02:00
Kenneth Skovhede 020471bb2a Added a windows service 2016-04-13 11:44:21 +02:00