Signed-off-by: Yuhang Zhao <zhaoyuhang@rankyee.com>
This commit is contained in:
Yuhang Zhao 2023-04-03 18:14:05 +08:00
parent 98a25031db
commit 787eae21a4
1 changed files with 4 additions and 2 deletions

View File

@ -16,12 +16,14 @@ echo.
goto Help goto Help
:Install :Install
set Root=%~dp0
set Root=%Root:~0,-1%
echo. echo.
echo.Start writing to the registry echo.Start writing to the registry
echo.[HKCU\Code\YY-Thunks] echo.[HKCU\Code\YY-Thunks]
echo.Root="%~dp0" echo.Root="%Root%"
echo. echo.
reg ADD HKCU\Code\YY-Thunks /v Root /t REG_SZ /d "%~dp0\" /f reg ADD HKCU\Code\YY-Thunks /v Root /t REG_SZ /d "%Root%" /f
echo. echo.
goto ExitScript goto ExitScript