增加文档目录

文档目录中加入每月改善计划
This commit is contained in:
2024-04-09 11:08:56 +08:00
parent ad8441b7d1
commit d51b396501
27 changed files with 221 additions and 31 deletions

View File

@@ -217,7 +217,10 @@ Public Class FrmUpdateConfig
'下载安装
Try
UpdateInstallTip(20, "Begin InstallUpdateService...")
InstallUpdateService()
'Momo 2024-04-05 Service ID 由 ProcessorID + AlisaName 构成从Service Controller 传参传过来
'InstallUpdateService()
InstallUpdateService(DataServiceAlias)
UpdateInstallTip(100, "InstallUpdateService Success!")
Catch ex As Exception
UpdateInstallTip(100, $"InstallUpdateService Error:{ex.Message}")
@@ -320,6 +323,9 @@ Public Class FrmUpdateConfig
''' <summary>同步目录auts_vendor</summary>
Private _sync_auts_vendor_DirPath As String
''' <summary>Appapp</summary>
Private _sync_auts_app_DirPath As String
''' <summary>
''' 创建运行时必要文件夹
''' </summary>
@@ -346,9 +352,11 @@ Public Class FrmUpdateConfig
_sync_auts_public_DirPath = $"{syncRootPath}\uts_Public"
_sync_auts_vendor_DirPath = $"{syncRootPath}\uts_{_license.VendorName}"
_sync_auts_app_DirPath = $"{RootPath}\App"
Directory.CreateDirectory(_sync_auts_public_DirPath) 'uts_Public
Directory.CreateDirectory(_sync_auts_vendor_DirPath) 'uts_VendorName
Directory.CreateDirectory(_sync_auts_app_DirPath) 'app
If System.IO.Directory.Exists(_sync_auts_public_DirPath) = False OrElse System.IO.Directory.Exists(_sync_auts_vendor_DirPath) = False Then
MsgBox("同步目录创建不成功!")
@@ -504,7 +512,7 @@ Public Class FrmUpdateConfig
''' <summary>
''' 一键更新
''' </summary>
Private Sub InstallUpdateService()
Private Sub InstallUpdateService(Optional AlisaName As String = "")
If GetUtsHost() = False Then Return '根据License信息,获取服务器地址
'校验License
@@ -544,7 +552,11 @@ Public Class FrmUpdateConfig
_serviceRegister.Roles = _serviceRoles
_serviceRegister.Group = _serviceGroup
_serviceRegister.RegisterService()
' Momo 2024-04-05 Service ID 由 ProcessorID + AlisaName 构成从Service Controller 传参传过来
'_serviceRegister.RegisterService()
_serviceRegister.RegisterService(AlisaName)
Catch ex As Exception
UpdateInstallTip(30, $"Register Service Fail,{ex.Message}")
Return