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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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.
Answered 02/01/2008 by: bheers
Second Degree Blue Belt

Please log in to comment
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...
Answered 02/03/2008 by: dbareis
Yellow Belt

Please log in to comment
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...
Answered 02/03/2008 by: dbareis
Yellow Belt

Please log in to comment
0
Hi,

Thanks for the response and it is vey helpful.

Thanks
WEK
Answered 02/04/2008 by: WEK76V
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity