Update launcher.bat

%RetString% 增加引号,解决QQ目录包含空格的问题,比如安装在:C:\Program Files\Tencent\QQNT时,获取不到正确的路径
This commit is contained in:
123233513 2024-09-05 10:41:04 +08:00 committed by GitHub
parent b415c1a6d1
commit 7bcea14799
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,8 @@ for /f "tokens=2*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\M
)
:napcat_boot
for %%a in (%RetString%) do (
:: %RetString% 增加引号解决QQ目录包含空格的问题比如安装在C:\Program Files\Tencent\QQNT
for %%a in ("%RetString%") do (
set "pathWithoutUninstall=%%~dpa"
)