summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-03-30 16:53:26 +0800
committerGitHub <[email protected]>2022-03-30 16:53:26 +0800
commit3dbb867984e63161fa6b04a418f5e41ed899db97 (patch)
tree4fa7c45163af70989caadda75e834523a7c42158
parent303d39e70a1d4c685e6a62d5739043e75fcebb39 (diff)
parentc85505f5e014cdc8059dcd3354c4363c8c071e46 (diff)
Merge pull request #2224 from shuax/dev
Improve installer environment variable settings
-rw-r--r--scripts/installer.nsi3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/installer.nsi b/scripts/installer.nsi
index 8ef9e2e6d..998dde356 100644
--- a/scripts/installer.nsi
+++ b/scripts/installer.nsi
@@ -300,6 +300,9 @@ Section "Add to PATH" InstallPath
; Write the installation path into the $PATH environment variable
WriteRegExpandStr ${HKCU} "Environment" "Path" "$R1;$InstDir"
${EndIf}
+
+ ; make sure windows knows about the change
+ SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
SectionEnd