mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 13:01:14 +00:00
18 lines
452 B
Batchfile
18 lines
452 B
Batchfile
@echo off
|
|
setlocal enabledelayedexpansion
|
|
:loop_read
|
|
for /f "tokens=2*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" /v "UninstallString"') do (
|
|
set "RetString=%%b"
|
|
goto :napcat_boot
|
|
)
|
|
|
|
:napcat_boot
|
|
for %%a in ("!RetString!") do (
|
|
set "pathWithoutUninstall=%%~dpa"
|
|
)
|
|
|
|
set "QQPath=!pathWithoutUninstall!QQ.exe"
|
|
set ELECTRON_RUN_AS_NODE=1
|
|
echo !QQPath!
|
|
"!QQPath!" ./napcat.mjs %*
|