VarName | Name of variable to unlink. |
RegistryKeyPath | Path to registry key that the value is under. |
RegistryValueName | Name of registry value to unlink. |
Note that currently only global variables are supported.
% registry set {HKEY_CURRENT_USER\Software\GenTest}
% set ::MyVar 123
% puts [llength [trace info variable ::MyVar]]
0
% LinkTclVariableToRegistryValue ::MyVar {HKEY_CURRENT_USER\Software\GenTest} testy
% puts [llength [trace info variable ::MyVar]]
1
% UnlinkTclVariableFromRegistryValue ::MyVar {HKEY_CURRENT_USER\Software\GenTest} testy
% puts [llength [trace info variable ::MyVar]]
0
% registry delete {HKEY_CURRENT_USER\Software\GenTest}