try to fix 9912

This commit is contained in:
simplxs 2024-06-29 15:48:12 +08:00
parent 2778c168c7
commit c924521e94
No known key found for this signature in database
GPG Key ID: 1A3833A46D84A08C

View File

@ -1,7 +1,7 @@
@echo off @echo off
setlocal enabledelayedexpansion setlocal enabledelayedexpansion
for /f "tokens=2*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" /v "UninstallString"') do ( for /f "tokens=2*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\Currentdbghelp\Uninstall\QQ" /v "UninstallString"') do (
set "RetString=%%b" set "RetString=%%b"
goto :boot goto :boot
) )
@ -11,7 +11,7 @@ for %%a in ("!RetString!") do (
set "pathWithoutUninstall=%%~dpa" set "pathWithoutUninstall=%%~dpa"
) )
if not exist "%pathWithoutUninstall%version.dll" ( if not exist "%pathWithoutUninstall%dbghelp.dll" (
if not exist %~dp0SignerServer.dll ( if not exist %~dp0SignerServer.dll (
echo SignerServer.dll not found echo SignerServer.dll not found
pause pause
@ -19,14 +19,14 @@ if not exist "%pathWithoutUninstall%version.dll" (
) )
goto copydll goto copydll
) else ( ) else (
set /p Choice="version.dll already exists, do you want to replace it?(Y/N):" set /p Choice="dbghelp.dll already exists, do you want to replace it?(Y/N):"
if /i "!Choice!"=="Y" goto copydll if /i "!Choice!"=="Y" goto copydll
if /i "!Choice!"=="y" goto copydll if /i "!Choice!"=="y" goto copydll
goto launch goto launch
) )
:copydll :copydll
copy /y "%~dp0SignerServer.dll" "%pathWithoutUninstall%version.dll" copy /y "%~dp0SignerServer.dll" "%pathWithoutUninstall%dbghelp.dll"
if errorlevel 1 ( if errorlevel 1 (
set /p Choice="Copy error, do you want to attempt to running as administrator?(Y/N):" set /p Choice="Copy error, do you want to attempt to running as administrator?(Y/N):"
if /i "!Choice!"=="Y" goto restart if /i "!Choice!"=="Y" goto restart