I’m using InstallShield 2015 SP1 with Basic MSI project
我正在使用InstallShield 2015 SP1和Basic MSI项目
When installing my setup on Windows 10 machine, it seems that restart or logoff is needed for the path environment variable to be updated.
在Windows 10计算机上安装我的设置时,似乎需要重新启动或注销才能更新路径环境变量。
The path is updated with the .ism file under Environment Variables, I tried using custom action that run this InstallScript code ( taken from InstallShield help ) to avoid restart but it didn’t helped, Any ideas ?
使用环境变量下的.ism文件更新路径,我尝试使用运行此InstallScript代码的自定义操作(取自InstallShield帮助)以避免重启,但它没有帮助,任何想法?
#define WM_WININICHANGE 0x001A
#define HWND_BROADCAST 0xffff
STRING szKey, szEnv;
WPOINTER pEnv;
begin
// Flush the registry to all applications.
szEnv = "Environment";
pEnv = &szEnv;
SendMessage (HWND_BROADCAST, WM_WININICHANGE, 0, pEnv );
end;
1 个解决方案
#1
0
Just need to put the CA after InstallFinalize.
只需要在InstallFinalize之后放入CA.
#1
0
Just need to put the CA after InstallFinalize.
只需要在InstallFinalize之后放入CA.