Is there anyway to permanently set environment variable through Bigfix action script?
I’m installing perl and for the this application to function well, I will have to set some environment variables for it but I don’t want to do it manually. I tried using command below in my action and it doesn’t work.
cmd /c set /M PATH “%PATH%;c:\perl\bin”
I also tried to use regset command to directly set it in the registry still it doesn’t work.
It is possible that this is working, but only in the context of the SYSTEM account… but note that you have an extra space in your action (before the “=”):
I was able to use this style and it worked but the only carvioc was that it overwrite the existing value. All I want to do is to append to the existing value . could you please help?
You can look up the value and stick it in the path… like this:
appendfile “Path”="{escapes of (value “Path” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment” of registry as string)};c:\perl\bin"