文件修改
parent
4aa28f1fbf
commit
d103273507
|
|
@ -422,9 +422,9 @@ namespace Start
|
||||||
var deployFoder = this.folderPathTbox.Text;
|
var deployFoder = this.folderPathTbox.Text;
|
||||||
|
|
||||||
// 3个压缩包的名称
|
// 3个压缩包的名称
|
||||||
string nginxExtractName = "EIImageViewerWeb";
|
string nginxExtractName = "HT_MIRS_Web";
|
||||||
string apiExtractName = "EIImageViewerService";
|
string apiExtractName = "HT_MIRS_Service";
|
||||||
string dataExtraName = "EIImageViewerData";
|
string dataExtraName = "HT_MIRS_Data";
|
||||||
|
|
||||||
string nginxStartPath = Path.Combine(deployFoder, @$"{nginxExtractName}\");
|
string nginxStartPath = Path.Combine(deployFoder, @$"{nginxExtractName}\");
|
||||||
var nginxConfigPath = Path.Combine(nginxStartPath, @$"conf\nginx.conf");
|
var nginxConfigPath = Path.Combine(nginxStartPath, @$"conf\nginx.conf");
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -89,7 +89,7 @@ void MyLog(string message)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var startProList = Process.GetProcesses().Where(t => t.ProcessName.Contains("EI_Image_Viewer_Installer")).ToList();
|
var startProList = Process.GetProcesses().Where(t => t.ProcessName.Contains("HT_MIRS_Installer")).ToList();
|
||||||
foreach (var item in startProList)
|
foreach (var item in startProList)
|
||||||
{
|
{
|
||||||
item.Kill();
|
item.Kill();
|
||||||
|
|
@ -108,7 +108,7 @@ else
|
||||||
{
|
{
|
||||||
Console.ForegroundColor = ConsoleColor.Red;
|
Console.ForegroundColor = ConsoleColor.Red;
|
||||||
MyLog("");
|
MyLog("");
|
||||||
MyLog("警告:卸载EI Image Viewer 服务,会将后台服务、数据库、网站文件以及运行的所有数据记录清除,请慎重操作。在卸载前,请确保数据已经备份。");
|
MyLog("警告:卸载HT_MIRS 服务,会将后台服务、数据库、网站文件以及运行的所有数据记录清除,请慎重操作。在卸载前,请确保数据已经备份。");
|
||||||
MyLog(" 您确定要继续卸载该服务吗?(Y/N)");
|
MyLog(" 您确定要继续卸载该服务吗?(Y/N)");
|
||||||
Console.ResetColor();
|
Console.ResetColor();
|
||||||
|
|
||||||
|
|
@ -193,7 +193,7 @@ else
|
||||||
|
|
||||||
MyLog("删除激活信息...");
|
MyLog("删除激活信息...");
|
||||||
DeleteFolderContents(configFolder);
|
DeleteFolderContents(configFolder);
|
||||||
MyLog("EI Image Viewer 服务卸载完成。");
|
MyLog("HT_MIRS 服务卸载完成。");
|
||||||
MyLog("3s 后自动退出...");
|
MyLog("3s 后自动退出...");
|
||||||
await Task.Delay(3000);
|
await Task.Delay(3000);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue