Compare commits
4 Commits
b3eafb3f2a
...
46d5591686
| Author | SHA1 | Date |
|---|---|---|
|
|
46d5591686 | |
|
|
153983d920 | |
|
|
d103273507 | |
|
|
4aa28f1fbf |
|
|
@ -17,7 +17,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IRaCIS.Core.Infra.EFCore",
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IRaCIS.Core.Infrastructure", "IRaCIS.Core.Infrastructure\IRaCIS.Core.Infrastructure.csproj", "{07EED0F8-08E6-46F3-ACBE-17BC1391BD4C}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IRaCIS.Core.Infrastructure", "IRaCIS.Core.Infrastructure\IRaCIS.Core.Infrastructure.csproj", "{07EED0F8-08E6-46F3-ACBE-17BC1391BD4C}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EI_Image_Viewer_Installer", "Start\EI_Image_Viewer_Installer.csproj", "{D96F4B52-359C-43C9-8110-BAD1437F9280}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HT_MIRS_Installer", "Start\HT_MIRS_Installer.csproj", "{D96F4B52-359C-43C9-8110-BAD1437F9280}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Install", "Install\Install.csproj", "{F5820DF0-DE23-4F4A-8D49-7E22F67B784D}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Install", "Install\Install.csproj", "{F5820DF0-DE23-4F4A-8D49-7E22F67B784D}"
|
||||||
EndProject
|
EndProject
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,9 @@
|
||||||
<None Remove="Resource\EIImageViewerData.rar" />
|
<None Remove="Resource\EIImageViewerData.rar" />
|
||||||
<None Remove="Resource\EIImageViewerService.rar" />
|
<None Remove="Resource\EIImageViewerService.rar" />
|
||||||
<None Remove="Resource\EIImageViewerWeb.rar" />
|
<None Remove="Resource\EIImageViewerWeb.rar" />
|
||||||
|
<None Remove="Resource\HT_MIRS_Data.rar" />
|
||||||
|
<None Remove="Resource\HT_MIRS_Service.rar" />
|
||||||
|
<None Remove="Resource\HT_MIRS_Web.rar" />
|
||||||
<None Remove="Resource\UnInstall.exe" />
|
<None Remove="Resource\UnInstall.exe" />
|
||||||
<None Remove="ServiceConfig.Json" />
|
<None Remove="ServiceConfig.Json" />
|
||||||
<None Remove="Resource\Data\data.sql" />
|
<None Remove="Resource\Data\data.sql" />
|
||||||
|
|
@ -28,21 +31,21 @@
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="favicon.ico" />
|
<Content Include="favicon.ico" />
|
||||||
<Content Include="Resource\EIImageViewerData.rar">
|
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
||||||
</Content>
|
|
||||||
<Content Include="Resource\EIImageViewerService.rar">
|
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
||||||
</Content>
|
|
||||||
<Content Include="Resource\EIImageViewerWeb.rar">
|
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
||||||
</Content>
|
|
||||||
<Content Include="Resource\Data\data.sql">
|
<Content Include="Resource\Data\data.sql">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="Resource\Data\dbo.sql">
|
<Content Include="Resource\Data\dbo.sql">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="Resource\HT_MIRS_Data.rar">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
<Content Include="Resource\HT_MIRS_Service.rar">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
<Content Include="Resource\HT_MIRS_Web.rar">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="Resource\UnInstall.exe">
|
<Content Include="Resource\UnInstall.exe">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
|
@ -183,7 +183,7 @@
|
||||||
nginxServiceDisplayNameTbox.Name = "nginxServiceDisplayNameTbox";
|
nginxServiceDisplayNameTbox.Name = "nginxServiceDisplayNameTbox";
|
||||||
nginxServiceDisplayNameTbox.Size = new Size(259, 23);
|
nginxServiceDisplayNameTbox.Size = new Size(259, 23);
|
||||||
nginxServiceDisplayNameTbox.TabIndex = 23;
|
nginxServiceDisplayNameTbox.TabIndex = 23;
|
||||||
nginxServiceDisplayNameTbox.Text = "EI_Nginx_Self_Starting";
|
nginxServiceDisplayNameTbox.Text = "HT_Nginx_Self_Starting";
|
||||||
//
|
//
|
||||||
// nginxServiceNameTbox
|
// nginxServiceNameTbox
|
||||||
//
|
//
|
||||||
|
|
@ -191,7 +191,7 @@
|
||||||
nginxServiceNameTbox.Name = "nginxServiceNameTbox";
|
nginxServiceNameTbox.Name = "nginxServiceNameTbox";
|
||||||
nginxServiceNameTbox.Size = new Size(259, 23);
|
nginxServiceNameTbox.Size = new Size(259, 23);
|
||||||
nginxServiceNameTbox.TabIndex = 22;
|
nginxServiceNameTbox.TabIndex = 22;
|
||||||
nginxServiceNameTbox.Text = "EI_Nginx";
|
nginxServiceNameTbox.Text = "HT_Nginx";
|
||||||
//
|
//
|
||||||
// label12
|
// label12
|
||||||
//
|
//
|
||||||
|
|
@ -228,7 +228,7 @@
|
||||||
serviceDisplayNameTBox.Name = "serviceDisplayNameTBox";
|
serviceDisplayNameTBox.Name = "serviceDisplayNameTBox";
|
||||||
serviceDisplayNameTBox.Size = new Size(259, 23);
|
serviceDisplayNameTBox.Size = new Size(259, 23);
|
||||||
serviceDisplayNameTBox.TabIndex = 16;
|
serviceDisplayNameTBox.TabIndex = 16;
|
||||||
serviceDisplayNameTBox.Text = "EI_Image_Viewer_DisplayName";
|
serviceDisplayNameTBox.Text = "HT_MIRS_DisplayName";
|
||||||
//
|
//
|
||||||
// serviceNameTBox
|
// serviceNameTBox
|
||||||
//
|
//
|
||||||
|
|
@ -236,7 +236,7 @@
|
||||||
serviceNameTBox.Name = "serviceNameTBox";
|
serviceNameTBox.Name = "serviceNameTBox";
|
||||||
serviceNameTBox.Size = new Size(259, 23);
|
serviceNameTBox.Size = new Size(259, 23);
|
||||||
serviceNameTBox.TabIndex = 15;
|
serviceNameTBox.TabIndex = 15;
|
||||||
serviceNameTBox.Text = "EI_Image_Viewer";
|
serviceNameTBox.Text = "HT_MIRS";
|
||||||
//
|
//
|
||||||
// label11
|
// label11
|
||||||
//
|
//
|
||||||
|
|
@ -442,7 +442,7 @@
|
||||||
Controls.Add(groupBox1);
|
Controls.Add(groupBox1);
|
||||||
Icon = (Icon)resources.GetObject("$this.Icon");
|
Icon = (Icon)resources.GetObject("$this.Icon");
|
||||||
Name = "Main";
|
Name = "Main";
|
||||||
Text = "安装 - EI Image Viewer V1";
|
Text = "安装 HT_MIRS";
|
||||||
TopMost = true;
|
TopMost = true;
|
||||||
Load += Main_Load;
|
Load += Main_Load;
|
||||||
groupBox1.ResumeLayout(false);
|
groupBox1.ResumeLayout(false);
|
||||||
|
|
|
||||||
|
|
@ -421,10 +421,10 @@ namespace Start
|
||||||
|
|
||||||
var deployFoder = this.folderPathTbox.Text;
|
var deployFoder = this.folderPathTbox.Text;
|
||||||
|
|
||||||
string nginxExtractName = "EIImageViewerWeb";
|
// 3个压缩包的名称
|
||||||
string apiExtractName = "EIImageViewerService";
|
string nginxExtractName = "HT_MIRS_Web";
|
||||||
|
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");
|
||||||
|
|
@ -434,14 +434,14 @@ namespace Start
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var apiBinPath = Path.Combine(deployFoder, "EIImageViewerService/EI_Image_Viewer.exe");
|
var apiBinPath = Path.Combine(deployFoder, $"{apiExtractName}/EI_Image_Viewer.exe");
|
||||||
var apiJsonConfigPath = Path.Combine(deployFoder, "EIImageViewerService/appsettings.CertificateApply.json");
|
var apiJsonConfigPath = Path.Combine(deployFoder, $"{apiExtractName}/appsettings.CertificateApply.json");
|
||||||
|
|
||||||
string nginxRarFilePath = Path.Combine(AppContext.BaseDirectory, $@"Resource\EIImageViewerWeb.rar");
|
string nginxRarFilePath = Path.Combine(AppContext.BaseDirectory, $@"Resource\{nginxExtractName}.rar");
|
||||||
string apiRarFilePath = Path.Combine(AppContext.BaseDirectory, "Resource/EIImageViewerService.rar");
|
string apiRarFilePath = Path.Combine(AppContext.BaseDirectory, $"Resource/{apiExtractName}.rar");
|
||||||
|
|
||||||
|
|
||||||
string dataRarFilePath = Path.Combine(AppContext.BaseDirectory, "Resource/EIImageViewerData.rar");
|
string dataRarFilePath = Path.Combine(AppContext.BaseDirectory, $"Resource/{dataExtraName}.rar");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,64 @@
|
||||||
<root>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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