添加自动更新

master
zhaojian 2 years ago
parent 53d71237c4
commit 9f4c8e36f8

Binary file not shown.

@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2">
<assemblyIdentity name="AutoUpdate.application" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" xmlns="urn:schemas-microsoft-com:asm.v1" />
<description asmv2:publisher="AutoUpdate" asmv2:product="AutoUpdate" xmlns="urn:schemas-microsoft-com:asm.v1" />
<description asmv2:publisher="HP" asmv2:product="AutoUpdate" xmlns="urn:schemas-microsoft-com:asm.v1" />
<deployment install="true" mapFileExtensions="true" />
<compatibleFrameworks xmlns="urn:schemas-microsoft-com:clickonce.v2">
<framework targetVersion="4.0" profile="Full" supportedRuntime="4.0.30319" />
<framework targetVersion="4.8" profile="Full" supportedRuntime="4.0.30319" />
</compatibleFrameworks>
<dependency>
<dependentAssembly dependencyType="install" codebase="AutoUpdate.exe.manifest" size="4400">
<dependentAssembly dependencyType="install" codebase="AutoUpdate.exe.manifest" size="4086">
<assemblyIdentity name="AutoUpdate.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" type="win32" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>49/Q3MIbjJkhI3XQJh3Ps7GeOhc=</dsig:DigestValue>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>UDIK1LWGtaGVshr2mLrwELButE1vzUzbgzij3shhDnw=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

@ -19,4 +19,4 @@
<appSettings>
<add key="FileNm" value="XGL.exe"/>
</appSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>

@ -15,15 +15,15 @@
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!--
UAC 清单选项
若想要更改 Windows 用户帐户控制级别,请
requestedExecutionLevel 节点替换为下述某项
如果要更改 Windows 用户帐户控制级别,请用以下节点之一替换
requestedExecutionLevel 节点。
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
若想要使用文件和注册表虚拟化以实现向后
兼容,请删除 requestedExecutionLevel 节点。
如果要利用文件和注册表虚拟化提供
向后兼容,请删除 requestedExecutionLevel 节点。
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
@ -48,8 +48,8 @@
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>eAplZbiNbjuEA5koP9BVxyTN198=</dsig:DigestValue>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>SxzOrr+CVv0cVMqucQhCKOAUGimCliKPSXFqjkQ8jSM=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
@ -60,8 +60,8 @@
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>mpwGLWz5Y+UV8sdZB3inSbOkDI4=</dsig:DigestValue>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>y2y2qGiDpDu7nWXNrUlsUDhtiXQiJ/2KpqsaKK4yFXE=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
@ -70,17 +70,8 @@
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>GnDD7eO6UEvWX60SWxJaeRdJdqQ=</dsig:DigestValue>
</hash>
</file>
<file name="SevenZipSharp.dll" size="163840">
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>mpwGLWz5Y+UV8sdZB3inSbOkDI4=</dsig:DigestValue>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>O/fIhAxSIZMvLu2mcAZm87Ij/+AIGqjDAdJQ/r4v/aM=</dsig:DigestValue>
</hash>
</file>
</asmv1:assembly>

@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2">
<assemblyIdentity name="AutoUpdate.application" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" xmlns="urn:schemas-microsoft-com:asm.v1" />
<description asmv2:publisher="AutoUpdate" asmv2:product="AutoUpdate" xmlns="urn:schemas-microsoft-com:asm.v1" />
<description asmv2:publisher="HP" asmv2:product="AutoUpdate" xmlns="urn:schemas-microsoft-com:asm.v1" />
<deployment install="true" mapFileExtensions="true" />
<compatibleFrameworks xmlns="urn:schemas-microsoft-com:clickonce.v2">
<framework targetVersion="4.0" profile="Full" supportedRuntime="4.0.30319" />
<framework targetVersion="4.8" profile="Full" supportedRuntime="4.0.30319" />
</compatibleFrameworks>
<dependency>
<dependentAssembly dependencyType="install" codebase="AutoUpdate.exe.manifest" size="4400">
<dependentAssembly dependencyType="install" codebase="AutoUpdate.exe.manifest" size="4086">
<assemblyIdentity name="AutoUpdate.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" type="win32" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>49/Q3MIbjJkhI3XQJh3Ps7GeOhc=</dsig:DigestValue>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>UDIK1LWGtaGVshr2mLrwELButE1vzUzbgzij3shhDnw=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

@ -1 +1 @@
7ea87970edda1bb7ccecf79c264bf0e1a4f107f6
eea3ff7a82b036285dd19ec3ef2dc8d3e7eddf67

@ -32,3 +32,21 @@ D:\000000000\CompanyPro\中一悬挂链\trunk\代码\前台\AutoUpdate\obj\x86\D
D:\000000000\CompanyPro\中一悬挂链\trunk\代码\前台\AutoUpdate\obj\x86\Debug\AutoUpdate.csproj.CopyComplete
D:\000000000\CompanyPro\中一悬挂链\trunk\代码\前台\AutoUpdate\obj\x86\Debug\AutoUpdate.exe
D:\000000000\CompanyPro\中一悬挂链\trunk\代码\前台\AutoUpdate\obj\x86\Debug\AutoUpdate.pdb
E:\workspace\LanJu\client\shangjian\AutoUpdate\bin\Debug\7z.dll
E:\workspace\LanJu\client\shangjian\AutoUpdate\bin\Debug\7z64.dll
E:\workspace\LanJu\client\shangjian\AutoUpdate\bin\Debug\AutoUpdate.exe.config
E:\workspace\LanJu\client\shangjian\AutoUpdate\bin\Debug\AutoUpdate.exe.manifest
E:\workspace\LanJu\client\shangjian\AutoUpdate\bin\Debug\AutoUpdate.application
E:\workspace\LanJu\client\shangjian\AutoUpdate\bin\Debug\AutoUpdate.exe
E:\workspace\LanJu\client\shangjian\AutoUpdate\bin\Debug\AutoUpdate.pdb
E:\workspace\LanJu\client\shangjian\AutoUpdate\bin\Debug\SevenZipSharp.dll
E:\workspace\LanJu\client\shangjian\AutoUpdate\obj\x86\Debug\AutoUpdate.csproj.AssemblyReference.cache
E:\workspace\LanJu\client\shangjian\AutoUpdate\obj\x86\Debug\AutoUpdate.csproj.SuggestedBindingRedirects.cache
E:\workspace\LanJu\client\shangjian\AutoUpdate\obj\x86\Debug\AutoUpdate.Properties.Resources.resources
E:\workspace\LanJu\client\shangjian\AutoUpdate\obj\x86\Debug\AutoUpdate.csproj.GenerateResource.cache
E:\workspace\LanJu\client\shangjian\AutoUpdate\obj\x86\Debug\AutoUpdate.csproj.CoreCompileInputs.cache
E:\workspace\LanJu\client\shangjian\AutoUpdate\obj\x86\Debug\AutoUpdate.exe.manifest
E:\workspace\LanJu\client\shangjian\AutoUpdate\obj\x86\Debug\AutoUpdate.application
E:\workspace\LanJu\client\shangjian\AutoUpdate\obj\x86\Debug\AutoUpdate.csproj.CopyComplete
E:\workspace\LanJu\client\shangjian\AutoUpdate\obj\x86\Debug\AutoUpdate.exe
E:\workspace\LanJu\client\shangjian\AutoUpdate\obj\x86\Debug\AutoUpdate.pdb

@ -15,15 +15,15 @@
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!--
UAC 清单选项
若想要更改 Windows 用户帐户控制级别,请
requestedExecutionLevel 节点替换为下述某项
如果要更改 Windows 用户帐户控制级别,请用以下节点之一替换
requestedExecutionLevel 节点。
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
若想要使用文件和注册表虚拟化以实现向后
兼容,请删除 requestedExecutionLevel 节点。
如果要利用文件和注册表虚拟化提供
向后兼容,请删除 requestedExecutionLevel 节点。
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
@ -48,8 +48,8 @@
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>eAplZbiNbjuEA5koP9BVxyTN198=</dsig:DigestValue>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>SxzOrr+CVv0cVMqucQhCKOAUGimCliKPSXFqjkQ8jSM=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
@ -60,8 +60,8 @@
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>mpwGLWz5Y+UV8sdZB3inSbOkDI4=</dsig:DigestValue>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>y2y2qGiDpDu7nWXNrUlsUDhtiXQiJ/2KpqsaKK4yFXE=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
@ -70,17 +70,8 @@
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>GnDD7eO6UEvWX60SWxJaeRdJdqQ=</dsig:DigestValue>
</hash>
</file>
<file name="SevenZipSharp.dll" size="163840">
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>mpwGLWz5Y+UV8sdZB3inSbOkDI4=</dsig:DigestValue>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>O/fIhAxSIZMvLu2mcAZm87Ij/+AIGqjDAdJQ/r4v/aM=</dsig:DigestValue>
</hash>
</file>
</asmv1:assembly>

@ -23,6 +23,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LanJuLib", "LanJuLib\LanJuL
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoUpdate", "AutoUpdate\AutoUpdate.csproj", "{341AD485-E4A2-4A2C-9E93-9D4E360D692C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPFupdate", "WPFupdate\WPFupdate.csproj", "{703CDC32-203A-4B71-8B3E-306A48AB3F8B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -279,6 +281,30 @@ Global
{341AD485-E4A2-4A2C-9E93-9D4E360D692C}.Release|x64.Build.0 = Release|x86
{341AD485-E4A2-4A2C-9E93-9D4E360D692C}.Release|x86.ActiveCfg = Release|x86
{341AD485-E4A2-4A2C-9E93-9D4E360D692C}.Release|x86.Build.0 = Release|x86
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Debug|ARM.ActiveCfg = Debug|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Debug|ARM.Build.0 = Debug|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Debug|ARM64.Build.0 = Debug|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Debug|x64.ActiveCfg = Debug|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Debug|x64.Build.0 = Debug|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Debug|x86.ActiveCfg = Debug|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Debug|x86.Build.0 = Debug|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Release|Any CPU.Build.0 = Release|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Release|ARM.ActiveCfg = Release|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Release|ARM.Build.0 = Release|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Release|ARM64.ActiveCfg = Release|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Release|ARM64.Build.0 = Release|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Release|x64.ActiveCfg = Release|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Release|x64.Build.0 = Release|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Release|x86.ActiveCfg = Release|Any CPU
{703CDC32-203A-4B71-8B3E-306A48AB3F8B}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

@ -1 +1 @@
65ea42614d5210ce1f76f304a0b99eadc686e4a3
0abd85b80046b9258518751daf3009dfc20e23db

@ -73,8 +73,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Libs\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="NLog">
<HintPath>..\..\..\海尔中一悬挂链\前台\XGL\bin\x86\Debug\NLog.dll</HintPath>
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Libs\NLog.dll</HintPath>
</Reference>
<Reference Include="NPOI">
<HintPath>..\packages\NPOI.dll</HintPath>

@ -36,4 +36,10 @@ namespace CommonFunc
/// </summary>
public static string ShiftCode { get; set; }
}
public class vsionclass
{
public string Id { get; set;}
public string isprocedure { get; set; }
public string versions { get; set; }
}
}

@ -1 +1 @@
0d3a19775b762537c0ccc61ba08dfd5625bd5f96
ae55a20c78909b7f5eb9ba6dc5a5b469abf93216

@ -240,3 +240,4 @@ E:\workspace\LanJu\client\shangjian\CommonFunc\obj\x86\Debug\CommonFunc.csproj.C
E:\workspace\LanJu\client\shangjian\CommonFunc\obj\x86\Debug\CommonFunc.csproj.CopyComplete
E:\workspace\LanJu\client\shangjian\CommonFunc\obj\x86\Debug\CommonFunc.dll
E:\workspace\LanJu\client\shangjian\CommonFunc\obj\x86\Debug\CommonFunc.pdb
E:\workspace\LanJu\client\shangjian\CommonFunc\bin\x86\Debug\NLog.dll

@ -4,7 +4,7 @@
library
C#
.cs
D:\WorkSpace\KHD\Project\Lanju\Lanju-client\shangjian\CommonFunc\obj\x86\Debug\
E:\workspace\LanJu\client\shangjian\CommonFunc\obj\x86\Debug\
CommonFunc
none
false
@ -13,7 +13,7 @@ DEBUG;TRACE
12023204370
2-1355062061
241494203934
44-550732465
44-170053996
HMessageBox.xaml;
False

@ -4,7 +4,7 @@
library
C#
.cs
D:\WorkSpace\KHD\Project\Lanju\Lanju-client\shangjian\CommonFunc\obj\x86\Debug\
E:\workspace\LanJu\client\shangjian\CommonFunc\obj\x86\Debug\
CommonFunc
none
false
@ -13,8 +13,8 @@ DEBUG;TRACE
12023204370
2-1355062061
2582182177
44-550732465
44-170053996
HMessageBox.xaml;
False
True

@ -1,4 +1,4 @@

FD:\WorkSpace\KHD\Project\Lanju\Lanju-client\shangjian\CommonFunc\HMessageBox.xaml;;
FE:\workspace\LanJu\client\shangjian\CommonFunc\HMessageBox.xaml;;

@ -1 +1 @@
51790d22c3b0468f4e446c933001b592c3e5c2c3
bc174b8fc67ac08f66a67e37a513d69b6869cfa6

@ -4,12 +4,12 @@
winexe
C#
.cs
D:\WorkSpace\KHD\Project\Lanju\Lanju-client\shangjian\LanJu\obj\Debug\
E:\workspace\LanJu\client\shangjian\LanJu\obj\Debug\
LanJu
none
false
DEBUG;TRACE
D:\WorkSpace\KHD\Project\Lanju\Lanju-client\shangjian\LanJu\App.xaml
E:\workspace\LanJu\client\shangjian\LanJu\App.xaml
9-1725419280
131720844138

@ -1,12 +1,12 @@

FD:\WorkSpace\KHD\Project\Lanju\Lanju-client\shangjian\LanJu\MainWindow.xaml;;
FD:\WorkSpace\KHD\Project\Lanju\Lanju-client\shangjian\LanJu\Views\LanJu_Complete.xaml;;
FD:\WorkSpace\KHD\Project\Lanju\Lanju-client\shangjian\LanJu\Views\LanJu_DeviceItems.xaml;;
FD:\WorkSpace\KHD\Project\Lanju\Lanju-client\shangjian\LanJu\Views\LanJu_Flow.xaml;;
FD:\WorkSpace\KHD\Project\Lanju\Lanju-client\shangjian\LanJu\Views\LanJu_Index.xaml;;
FD:\WorkSpace\KHD\Project\Lanju\Lanju-client\shangjian\LanJu\Views\LanJu_Material.xaml;;
FD:\WorkSpace\KHD\Project\Lanju\Lanju-client\shangjian\LanJu\Views\LanJu_Operator.xaml;;
FD:\WorkSpace\KHD\Project\Lanju\Lanju-client\shangjian\LanJu\Views\LanJu_Paused.xaml;;
FD:\WorkSpace\KHD\Project\Lanju\Lanju-client\shangjian\LanJu\Views\LanJu_Prepare.xaml;;
FE:\workspace\LanJu\client\shangjian\LanJu\MainWindow.xaml;;
FE:\workspace\LanJu\client\shangjian\LanJu\Views\LanJu_Complete.xaml;;
FE:\workspace\LanJu\client\shangjian\LanJu\Views\LanJu_DeviceItems.xaml;;
FE:\workspace\LanJu\client\shangjian\LanJu\Views\LanJu_Flow.xaml;;
FE:\workspace\LanJu\client\shangjian\LanJu\Views\LanJu_Index.xaml;;
FE:\workspace\LanJu\client\shangjian\LanJu\Views\LanJu_Material.xaml;;
FE:\workspace\LanJu\client\shangjian\LanJu\Views\LanJu_Operator.xaml;;
FE:\workspace\LanJu\client\shangjian\LanJu\Views\LanJu_Paused.xaml;;
FE:\workspace\LanJu\client\shangjian\LanJu\Views\LanJu_Prepare.xaml;;

@ -1 +1 @@
75b64367c22655afbbe469bfdef148da7e480363
93e6bdf40a6f5d4b88993bae3e272b7f08763f68

Binary file not shown.

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
</configuration>

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("WPFupdate")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("HP")]
[assembly: AssemblyProduct("WPFupdate")]
[assembly: AssemblyCopyright("Copyright © HP 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("703cdc32-203a-4b71-8b3e-306a48ab3f8b")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{703CDC32-203A-4B71-8B3E-306A48AB3F8B}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>WPFupdate</RootNamespace>
<AssemblyName>WPFupdate</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="HtmlAgilityPack, Version=1.11.54.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a, processorArchitecture=MSIL">
<HintPath>..\packages\HtmlAgilityPack.1.11.54\lib\Net45\HtmlAgilityPack.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="WPFupdate1.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="update.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WPFupdate
{
internal class WPFupdate1
{
public static void Main(string[] args)
{
Update update = new Update();
update.Update1(args[0]);
}
}
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
</configuration>

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

@ -0,0 +1,12 @@
E:\workspace\LanJu\client\shangjian\WPFupdate\bin\Debug\WPFupdate.exe.config
E:\workspace\LanJu\client\shangjian\WPFupdate\bin\Debug\WPFupdate.exe
E:\workspace\LanJu\client\shangjian\WPFupdate\bin\Debug\WPFupdate.pdb
E:\workspace\LanJu\client\shangjian\WPFupdate\bin\Debug\HtmlAgilityPack.dll
E:\workspace\LanJu\client\shangjian\WPFupdate\bin\Debug\HtmlAgilityPack.pdb
E:\workspace\LanJu\client\shangjian\WPFupdate\bin\Debug\HtmlAgilityPack.xml
E:\workspace\LanJu\client\shangjian\WPFupdate\obj\Debug\WPFupdate.csproj.AssemblyReference.cache
E:\workspace\LanJu\client\shangjian\WPFupdate\obj\Debug\WPFupdate.csproj.SuggestedBindingRedirects.cache
E:\workspace\LanJu\client\shangjian\WPFupdate\obj\Debug\WPFupdate.csproj.CoreCompileInputs.cache
E:\workspace\LanJu\client\shangjian\WPFupdate\obj\Debug\WPFupdate.csproj.CopyComplete
E:\workspace\LanJu\client\shangjian\WPFupdate\obj\Debug\WPFupdate.exe
E:\workspace\LanJu\client\shangjian\WPFupdate\obj\Debug\WPFupdate.pdb

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="HtmlAgilityPack" version="1.11.54" targetFramework="net48" />
</packages>

@ -0,0 +1,196 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using HtmlAgilityPack;
using System.Linq;
using System.Diagnostics;
class Update
{
public void Update1(string args)
{
string iisServerBaseUrl = "http://192.168.202.23:8081/"; // IIS服务器基本URL
string iisFolder = ""; // IIS服务器上的文件夹路径
string localFolderBase = AppDomain.CurrentDomain.BaseDirectory; // 本地文件夹的基本路径
SynchronizeFiles(iisServerBaseUrl, iisFolder, localFolderBase);
string fileName = "vsion.txt"; // 指定要操作的文件名
string filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, fileName); // 构建完整的文件路径
// 读取文本文件内容
string fileContent = File.ReadAllText(filePath);
// 在文件内容中进行修改
fileContent = args; // 将 "old text" 替换为 "new text"
// 将修改后的内容写回文件
File.WriteAllText(filePath, fileContent);
Console.WriteLine("文件已修改并保存。");
// 继续运行应用程序的主要逻辑
Console.WriteLine("应用程序启动...!!!");
// 设置要启动的应用程序名称和参数
string appName = "XGL.exe"; // 替换为你的目标控制台应用程序的名称
string appArguments = " ";// 替换为你的应用程序需要的参数
// 创建进程启动信息
ProcessStartInfo startInfo = new ProcessStartInfo
{
FileName = appName,
Arguments = appArguments,
RedirectStandardOutput = false, // 可以选择是否重定向标准输出
UseShellExecute = false, // 必须设置为false以便在控制台中启动应用程序
CreateNoWindow = false // 设置为true以便在后台启动应用程序
};
// 创建并启动进程
Process process = new Process
{
StartInfo = startInfo
};
process.Start();
Environment.Exit(0);
// 在这里添加你的应用程序的主要逻辑
Console.ReadLine();
}
public void SynchronizeFiles(string serverBaseUrl, string serverFolder, string localFolder)
{
using (HttpClient client = new HttpClient())
{
try
{
HttpResponseMessage response = client.GetAsync(new Uri(serverBaseUrl + serverFolder)).Result;
response.EnsureSuccessStatusCode();
string responseContent = response.Content.ReadAsStringAsync().Result;
// 使用HtmlAgilityPack解析HTML内容
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(responseContent);
// 查找所有包含文件名和文件夹名的<a>标签
var links = doc.DocumentNode.SelectNodes("//a");
if (links != null)
{
foreach (var link in links)
{
string itemName = link.InnerText;
string itemUrl = serverBaseUrl + serverFolder + itemName;
string localPath = Path.Combine(localFolder, itemName);
if (link.InnerText.StartsWith("<dir>"))
{
// 这是一个文件夹
if (!Directory.Exists(localPath))
{
Directory.CreateDirectory(localPath);
}
// 递归处理文件夹中的内容
SynchronizeFiles(serverBaseUrl, serverFolder + itemName + "/", localPath);
}
else
{
// 这是一个文件
if (!string.Equals(itemName, "web.config", StringComparison.OrdinalIgnoreCase))
{
// 检查文件类型是否需要更新
string fileExtension = Path.GetExtension(itemName).ToLower();
if (ShouldUpdateFile(fileExtension))
{
if (File.Exists(localPath))
{
DownloadFile(itemUrl, localPath);
Console.WriteLine($"已下载并覆盖文件: {itemName}");
}
else
{
DownloadFile(itemUrl, localPath);
Console.WriteLine($"已下载文件: {itemName}");
}
}
else
{
Console.WriteLine($"不需要更新的文件类型: {fileExtension}");
}
}
}
}
}
else
{
Console.WriteLine("未找到文件列表");
}
}
catch (HttpRequestException ex)
{
Console.WriteLine($"HTTP请求失败: {ex.Message}");
}
catch (Exception ex)
{
Console.WriteLine($"发生错误: {ex.Message}");
}
}
}
public bool ShouldUpdateFile(string fileExtension)
{
// 添加需要更新的文件类型
string[] allowedExtensions = { ".exe", ".dll", ".json", ".xml" };
// 如果文件类型在允许更新的文件类型列表中,则返回 true否则返回 false
return allowedExtensions.Contains(fileExtension);
}
public void DownloadFile(string fileUrl, string localFilePath)
{
using (HttpClient client = new HttpClient())
{
try
{
HttpResponseMessage response = client.GetAsync(new Uri(fileUrl)).Result;
response.EnsureSuccessStatusCode();
using (Stream contentStream = response.Content.ReadAsStreamAsync().Result)
{
using (Stream fileStream = File.Create(localFilePath))
{
contentStream.CopyTo(fileStream);
}
}
Console.WriteLine($"已成功下载文件: {localFilePath}");
}
catch (HttpRequestException ex)
{
// 处理连接断开或其他HTTP请求错误
Console.WriteLine($"HTTP请求失败: {ex.Message}");
// 在这里可以添加重试逻辑或其他处理方式
}
catch (Exception ex)
{
Console.WriteLine($"发生错误: {ex.Message}");
}
}
}
public bool AreFilesEqual(string file1Url, string file2Path)
{
byte[] file1Content = File.ReadAllBytes(file2Path);
using (HttpClient client = new HttpClient())
{
byte[] file2Content = client.GetByteArrayAsync(file1Url).Result;
return StructuralComparisons.StructuralEqualityComparer.Equals(file1Content, file2Content);
}
}
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save