fix: Inno Setup version env check and WM_SETTINGCHANGE wParam
Release / Build aarch64-unknown-linux-gnu (push) Has been cancelled
Release / Build aarch64-apple-darwin (push) Has been cancelled
Release / Build aarch64-pc-windows-msvc (push) Has been cancelled
Release / Build x86_64-unknown-linux-gnu (push) Has been cancelled
Release / Build x86_64-apple-darwin (push) Has been cancelled
Release / Build x86_64-pc-windows-msvc (push) Has been cancelled
Release / Create GitHub Release (push) Has been cancelled

This commit is contained in:
2026-06-03 21:32:42 +08:00
parent 9a62b4fd62
commit 5e45bbbaf6
+2 -2
View File
@@ -1,6 +1,6 @@
#define MyAppName "sshell" #define MyAppName "sshell"
#define MyAppVersion GetEnv("SHELL_VERSION") #define MyAppVersion GetEnv("SHELL_VERSION")
#ifndef MyAppVersion #if MyAppVersion == ""
#define MyAppVersion "0.1.0" #define MyAppVersion "0.1.0"
#endif #endif
#define MyAppPublisher "rain-bus" #define MyAppPublisher "rain-bus"
@@ -62,6 +62,6 @@ begin
if CurStep = ssPostInstall then if CurStep = ssPostInstall then
begin begin
// Notify the system that environment variables have changed // Notify the system that environment variables have changed
SendMessage(HWND_BROADCAST, WM_SETTINGCHANGE, 0, LPARAM(PChar('Environment'))); SendMessage(HWND_BROADCAST, WM_SETTINGCHANGE, 0, 0);
end; end;
end; end;