Kamp
Posts: 23
Joined: Wed Mar 07, 2018 8:43 am

Environment variables do not apply without reboot

Hello!

Created the msi package, which sets the system environment variables (test.msi). I included this msi in the pre-installation (feature-based) in the main exe (main.exe). After the installation of the main.exe, the system environment variables appeared, but they are not valid until you restart the computer.
But if you first install separately msi, and then main.exe (without test.msi), then everything works without restarting the computer.

What should I do to get around this problem?
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Environment variables do not apply without reboot

Hi,

Please take a look on the "Propogating Environment Variables" and "Environment Variables" threads which debate the same problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Kamp
Posts: 23
Joined: Wed Mar 07, 2018 8:43 am

Re: Environment variables do not apply without reboot

Eusebiu wrote:Please take a look on the "Propogating Environment Variables" and "Environment Variables" threads which debate the same problem.
Thank you! I had to do my exe-file with WM_SETTINGCHANGE.
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Environment variables do not apply without reboot

You're welcome. Glad to help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”