/build/static/layout/Breadcrumb_cap_w.png

Uninstalling doesn't remove Environment variable

Hi,

when I Install an application, it sets environment variable and after installation when I try to run it from shortcut, it reads the value from environment variable.

When I uninstall the application, every thing is working fine but when I goto Control panel--> System--> Advaced--> Environment variable
I could not see the environment variable. Till here is is good.

When I goto command prompt--> type Set
there the environment variable is not getting deleted and If I reboot the system it is getting deleted.

Is theer any thing I can do to delete the environment variable without rebooting the system.

Any suggestions will be appreciated.

Thanks
WEk

0 Comments   [ + ] Show comments

Answers (4)

Posted by: bheers 12 years ago
Second Degree Blue Belt
0
Environment variables do not get into effect untill you reboot in either case of setting the env variable or when you delete the env variables.
Posted by: dbareis 12 years ago
Yellow Belt
0
Environment variables are per process items. The defaults are what you are setting. User environment variables should only need the user to logoff then back on, System ones may or may not require a reboot.

If indeed you restarted the command prompt then the parent of this process (CMD.EXE) needs restarting.
"Process Explorer" will give you parent details as well as allow you to see their environment.

It is possible to "refresh" some programs and there is at least one utility (whose name I can't remember) available to do this...
Posted by: dbareis 12 years ago
Yellow Belt
0
After a bit more reading... The MSI's environment table handling should already be broadcasting the "WM_SETTINGCHANGE" message, so if that is not working the utility I mentioned won't either...
Posted by: WEK76V 12 years ago
Senior Yellow Belt
0
Hi,

Thanks for the response and it is vey helpful.

Thanks
WEK
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ