Skip to content

Commit

Permalink
增加 Snappy Driver Installer支持
Browse files Browse the repository at this point in the history
  • Loading branch information
xrgzs committed Oct 22, 2024
1 parent 53d00a7 commit 26c3986
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions api/api.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 26c3986

Please sign in to comment.