Set Environment Variable does not work
Posted: Fri Feb 12, 2016 4:28 am
Hi Support Team,
my MSI script contains the following command:
~InstallAware Clipboard Data~
~Set Environment~
~{2319A370-12EC-4DE9-99AA-DD08C2C8ED4D}~
~MY_ROOT~
~$TARGETDIR$~
~0~
~2~
~TRUE~
~TRUE~
After Setup has finished I open a command prompt (cmd.exe) and enter 'set'. MY_ROOT is not listed.
When I run cmd elevated it is.
After restart the environment variable MY_ROOT is also visible to non elevated processes.
I assume that something like a change notification is missing, because after a manual change of the System variable MY_ROOT via windows the variable is visible to non elevated processes without the Need for a reboot.
Best regards
Michael
my MSI script contains the following command:
~InstallAware Clipboard Data~
~Set Environment~
~{2319A370-12EC-4DE9-99AA-DD08C2C8ED4D}~
~MY_ROOT~
~$TARGETDIR$~
~0~
~2~
~TRUE~
~TRUE~
After Setup has finished I open a command prompt (cmd.exe) and enter 'set'. MY_ROOT is not listed.
When I run cmd elevated it is.
After restart the environment variable MY_ROOT is also visible to non elevated processes.
I assume that something like a change notification is missing, because after a manual change of the System variable MY_ROOT via windows the variable is visible to non elevated processes without the Need for a reboot.
Best regards
Michael