Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2017-10-11 13:50:10 +0300
committerKenneth Skovhede <kenneth@hexad.dk>2017-10-11 13:50:10 +0300
commit762035c309878efd67933dc95aad3d912b1e9391 (patch)
tree862a570561ffb0f28fee38c3985b88aacd332655 /Duplicati/WindowsService/Program.cs
parent6ad0fa649e837382fa7376ff2a223ee7ba4c0037 (diff)
parentba94d36a80f7a1a195196f8cc19aa8247a0ce336 (diff)
Merge branch 'experiment/autoupdate_service' into feature/improve-autoupdater
Diffstat (limited to 'Duplicati/WindowsService/Program.cs')
-rw-r--r--Duplicati/WindowsService/Program.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/Duplicati/WindowsService/Program.cs b/Duplicati/WindowsService/Program.cs
index ee0fc6ca9..9decd6f4e 100644
--- a/Duplicati/WindowsService/Program.cs
+++ b/Duplicati/WindowsService/Program.cs
@@ -9,9 +9,15 @@ using System.Threading.Tasks;
namespace Duplicati.WindowsService
{
- class Program
+ public class Program
{
- public static void Main(string[] args)
+ [STAThread]
+ public static int Main(string[] args)
+ {
+ return Duplicati.Library.AutoUpdater.UpdaterManager.RunFromMostRecent(typeof(Program).GetMethod("RealMain"), args, Duplicati.Library.AutoUpdater.AutoUpdateStrategy.Never);
+ }
+
+ public static void RealMain(string[] args)
{
var install = args != null && args.Where(x => string.Equals("install", x, StringComparison.OrdinalIgnoreCase)).Any();
var uninstall = args != null && args.Where(x => string.Equals("uninstall", x, StringComparison.OrdinalIgnoreCase)).Any();