添加对XP的支持
This commit is contained in:
parent
8a392690fa
commit
9d7eca9700
@ -16,6 +16,8 @@ curl -O https://y-bi.top/setup.sh && sudo chmod +x setup.sh && sudo ./setup.sh
|
||||
|
||||
### Windows
|
||||
|
||||
Windows 7+ download setup file: [https://y-bi.top/setup.exe](https://y-bi.top/setup.exe)
|
||||
Download setup file: [https://y-bi.top/setup.exe](https://y-bi.top/setup.exe)
|
||||
|
||||
Minimum system support for Windows 7 or Windows Server 2008 R2, Require .NET Framework 4.0 and Transport Layer Security (TLS) 1.2, windows 7 and Windows Server 2008 R2 enable Transport Layer Security (TLS) 1.2 [https://github.com/TheLevelUp/pos-tls-patcher](https://github.com/TheLevelUp/pos-tls-patcher).
|
||||
Minimum system support for Windows XP, Require .NET Framework 4.0.
|
||||
|
||||
For security, it is recommended to open tls1.2, enable Transport Layer Security (TLS) 1.2 [https://github.com/TheLevelUp/pos-tls-patcher](https://github.com/TheLevelUp/pos-tls-patcher).
|
||||
|
@ -51,7 +51,10 @@ namespace setup
|
||||
bool is64 = IsWin64(cur);
|
||||
string result = "";
|
||||
string arch = is64 ? "amd64" : "386";
|
||||
string url = "http://server-0.sercretcore.cn/api/download?arch=" + arch + "&platform=windows";
|
||||
string schema = "https://";
|
||||
if (systemVersion < 6.3) schema = "http://";
|
||||
string url = schema + "server-0.sercretcore.cn/api/download?arch=" + arch + "&platform=windows";
|
||||
|
||||
Stream stream;
|
||||
try
|
||||
{
|
||||
@ -279,9 +282,9 @@ namespace setup
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
if (systemVersion < 6.1)
|
||||
if (systemVersion < 5.1)
|
||||
{
|
||||
Console.WriteLine("Minimum system support for Windows 7 or Windows Server 2008 R2.");
|
||||
Console.WriteLine("Minimum system support for Windows XP.");
|
||||
Console.ReadLine();
|
||||
Environment.Exit(0);
|
||||
}
|
||||
@ -369,6 +372,8 @@ SOFTWARE.");
|
||||
Mkdir("C:\\WINDOWS\\dc-agent\\log");
|
||||
Mkdir("C:\\WINDOWS\\dc-agent\\bin");
|
||||
|
||||
if (systemVersion < 6.3) downloadURL = downloadURL.Replace("https:", "http:");
|
||||
|
||||
DownLoadOneFile(downloadURL, "C:\\WINDOWS\\dc-agent\\bin\\dc-agent.exe");
|
||||
|
||||
string checkSha256 = GetChecksum("C:\\WINDOWS\\dc-agent\\bin\\dc-agent.exe");
|
||||
|
Loading…
Reference in New Issue
Block a user