1234567891011121314151617181920212223242526 |
- using FisTools;
- using System;
- using System.IO;
- namespace fis.Loader.Handlers
- {
- internal class FullUpgradeHandler : BaseHandler
- {
- public FullUpgradeHandler() : base(LaunchMethodEnum.FullUpgrade)
- {
- }
- internal override void Execute()
- {
- if (IsCartSystemVersion)
- {
- KillDamon();
- }
- ToolManager.Instance.UpgradeCenter.ExecuteFullUpgrade(Logger.WriteLine);
- if (IsCartSystemVersion)
- {
- var fisFileDir = Directory.GetParent(AppDomain.CurrentDomain.BaseDirectory).Parent.FullName;
- var fileName = Path.Combine(fisFileDir, "fis.exe");
- StartDamon(fileName, fisFileDir);
- }
- }
- }
- }
|