Browse Source

更新Register

felix 1 year ago
parent
commit
9775f3d281
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Vinno.FIS.Sonopost.Register/TaskSchedulerHelper.cs

+ 2 - 1
Vinno.FIS.Sonopost.Register/TaskSchedulerHelper.cs

@@ -1,5 +1,6 @@
 using Microsoft.Win32.TaskScheduler;
 using System;
+using System.IO;
 using Task = Microsoft.Win32.TaskScheduler.Task;
 
 namespace Vinno.FIS.Sonopost.Upgrade
@@ -14,7 +15,7 @@ namespace Vinno.FIS.Sonopost.Upgrade
         /// </summary>
         public static void Install(string path)
         {
-            _keeperFilePath = path;
+            _keeperFilePath = Path.Combine(path, "Vinno.FIS.Sonopost.Keeper.exe");
             if (IsTaskExist(_taskName))
             {
                 UnInstall();