From c924521e94de8759e81317e186bb1ae036ef51e6 Mon Sep 17 00:00:00 2001 From: simplxs Date: Sat, 29 Jun 2024 15:48:12 +0800 Subject: [PATCH] try to fix 9912 --- start.bat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/start.bat b/start.bat index 7ca2eee..5723e8f 100644 --- a/start.bat +++ b/start.bat @@ -1,7 +1,7 @@ @echo off 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" goto :boot ) @@ -11,7 +11,7 @@ for %%a in ("!RetString!") do ( set "pathWithoutUninstall=%%~dpa" ) -if not exist "%pathWithoutUninstall%version.dll" ( +if not exist "%pathWithoutUninstall%dbghelp.dll" ( if not exist %~dp0SignerServer.dll ( echo SignerServer.dll not found pause @@ -19,14 +19,14 @@ if not exist "%pathWithoutUninstall%version.dll" ( ) goto copydll ) 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 goto launch ) :copydll -copy /y "%~dp0SignerServer.dll" "%pathWithoutUninstall%version.dll" +copy /y "%~dp0SignerServer.dll" "%pathWithoutUninstall%dbghelp.dll" if errorlevel 1 ( set /p Choice="Copy error, do you want to attempt to running as administrator?(Y/N):" if /i "!Choice!"=="Y" goto restart