mabian
12th October 2010 11:07 UTC
Complete removal of environment variable?
Hello,
I'm trying complete deletion of an environment variable on uninstall, using this command:
${un.EnvVarUpdate} $0 ${C_PGENVVARIABLE} "R" "HKLM" "$INSTDIR\etc"
Of course C_PGENVARIABLE holds the name of the variable.
The variable is emptied but not removed. Is there an easy way to force complete variable removal?
Thanks,
Mario
Animaether
12th October 2010 12:31 UTC
Just delete the registry value, then signal to windows you changed things around:
5000
>
mabian
12th October 2010 14:11 UTC
Oh, that's cool: no more need for ${envUpdate} then, just Write and Delete registry keys :)
Thank you,
Mario
mabian
12th October 2010 14:16 UTC
Oh, that's cool: no more need for ${envUpdate} then, just Write and Delete registry keys :)
Thank you,
Mario
Animaether
12th October 2010 14:32 UTC
Yup. EnvVarUpdate is more useful if you have something like the PATH environment variable where there are multiple values that you'd want to manipulate. Deleting the PATH environment variable would be a Bad Thing™ ;)