mirror of
https://github.com/Simplxss/SignerServer.git
synced 2024-11-21 00:37:53 +08:00
try to fix 9912
This commit is contained in:
parent
2778c168c7
commit
c924521e94
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user