From 26c3986cefcf7dc4446d42ea197abc3fb7417804 Mon Sep 17 00:00:00 2001 From: xrgzs Date: Tue, 22 Oct 2024 15:35:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20Snappy=20Driver=20Installe?= =?UTF-8?q?r=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api.bat | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/api/api.bat b/api/api.bat index 0449f15..0d2742a 100644 --- a/api/api.bat +++ b/api/api.bat @@ -169,6 +169,23 @@ if exist "%SystemDrive%\WINDOWS\WinDrive\DcLoader.exe" ( echo [API]正在应用驱动总裁...>"%systemdrive%\Windows\Setup\wallname.txt" start "" /wait "%SystemDrive%\WINDOWS\WinDrive\DcLoader.exe" echo %SystemDrive%\WINDOWS\WinDrive\DcLoader.exe>>"%systemdrive%\Windows\Setup\xrsysdriverdebug.log" +) else if exist "%SystemDrive%\WINDOWS\WinDrive\SDI*.exe" ( + for %%a in ("%SystemDrive%\WINDOWS\WinDrive\SDI*.exe") do ( + if /i "PROCESSOR_ARCHITECTURE"=="AMD64" ( + echo %%~na | find /i "64" && ( + echo [API]正在应用Snappy Driver Installer x64...>"%systemdrive%\Windows\Setup\wallname.txt" + echo %%a>>"%systemdrive%\Windows\Setup\xrsysdriverdebug.log" + "%%a" -hintdelay:1500 -license:1 -expertmode -onlyupdates -autoinstall -autoclose -keepunpackedindex >>"%systemdrive%\Windows\Setup\xrsysdriverdebug.log" + ) + ) + if /i "PROCESSOR_ARCHITECTURE"=="x86" ( + echo %%~na | find /i "64" || ( + echo [API]正在应用Snappy Driver Installer x86...>"%systemdrive%\Windows\Setup\wallname.txt" + echo %%a>>"%systemdrive%\Windows\Setup\xrsysdriverdebug.log" + "%%a" -hintdelay:1500 -license:1 -expertmode -onlyupdates -autoinstall -autoclose -keepunpackedindex >>"%systemdrive%\Windows\Setup\xrsysdriverdebug.log" + ) + ) + ) ) else if exist "%SystemDrive%\WINDOWS\WinDrive\*.ini" ( echo [API]正在应用万能驱动...>"%systemdrive%\Windows\Setup\wallname.txt" copy /y "%~dp0apifiles\DriveCleaner.exe" "%SystemDrive%\WINDOWS\WinDrive\DriveCleaner.exe"