ref:4ef856ab99eb116f59162886df3f66f9a67d272d

fix(windows): update-path.bat registry command syntax in installer (#4902)

SHA: 4ef856ab99eb116f59162886df3f66f9a67d272d
Author: 空明竹随 <kmzs1023@qq.com>
Date: 2026-03-30 15:04
Parents: d033346
1 files changed +3 -1
Type
src_assets/windows/misc/path/update-path.bat +3 −1
@@ -94,7 +94,9 @@
rem Only update if path was changed
if "!CHANGES_MADE!"=="1" (
rem Set the new path in the registry
reg add "%KEY_NAME%" /v "%VALUE_NAME%" /t REG_EXPAND_SZ /d "!CURRENT_PATH!" /f
rem Windows systems running Chinese may unexpectedly ignore the /f option at the end of the command.
rem This issue only occurs with the remove command.
reg add "%KEY_NAME%" /v "%VALUE_NAME%" /t REG_EXPAND_SZ /f /d "!CURRENT_PATH!"
if !ERRORLEVEL!==0 (
echo Successfully removed Sunshine directories from PATH
) else (