FullUpgradeHandler.cs 773 B

1234567891011121314151617181920212223242526
  1. using FisTools;
  2. using System;
  3. using System.IO;
  4. namespace fis.Loader.Handlers
  5. {
  6. internal class FullUpgradeHandler : BaseHandler
  7. {
  8. public FullUpgradeHandler() : base(LaunchMethodEnum.FullUpgrade)
  9. {
  10. }
  11. internal override void Execute()
  12. {
  13. if (IsCartSystemVersion)
  14. {
  15. KillDamon();
  16. }
  17. ToolManager.Instance.UpgradeCenter.ExecuteFullUpgrade(Logger.WriteLine);
  18. if (IsCartSystemVersion)
  19. {
  20. var fisFileDir = Directory.GetParent(AppDomain.CurrentDomain.BaseDirectory).Parent.FullName;
  21. var fileName = Path.Combine(fisFileDir, "fis.exe");
  22. StartDamon(fileName, fisFileDir);
  23. }
  24. }
  25. }
  26. }