diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index 33993d1ad3..3f104dd6fa 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -419,6 +419,7 @@ seof servercert servercertificate setmetadatabymanifestid +SETTINGCHANGE SETTINGMAPPING SHCONTF SHGDN diff --git a/src/AppInstallerCommonCore/PathVariable.cpp b/src/AppInstallerCommonCore/PathVariable.cpp index d1ab7295a3..c8a58bb804 100644 --- a/src/AppInstallerCommonCore/PathVariable.cpp +++ b/src/AppInstallerCommonCore/PathVariable.cpp @@ -121,6 +121,8 @@ namespace AppInstaller::Registry::Environment std::wstring pathName = std::wstring{ s_PathName }; m_key.SetValue(pathName, ConvertToUTF16(value), REG_EXPAND_SZ); + SendNotifyMessageW(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM)TEXT("Environment")); + } bool RefreshPathVariableForCurrentProcess()