I have this code but it doesnt work


On Startup
-----------------------------
Code:
bIS = Registry.DoesKeyExist(HKEY_CURRENT_USER, "Software\\Microsoft\\Internet Explorer\\Main");
if bIS == true then
Registry.SetValue(HKEY_CURRENT_USER, "Software\\Microsoft\\Internet Explorer\\Main", "DisableScriptDebuggerIE", "yes", REG_SZ);
end


On Shutdown
-----------------------------
Code:
bIS = Registry.DoesKeyExist(HKEY_CURRENT_USER, "Software\\Microsoft\\Internet Explorer\\Main");
if bIS == true then
Registry.SetValue(HKEY_CURRENT_USER, "Software\\Microsoft\\Internet Explorer\\Main", "DisableScriptDebuggerIE", "", REG_SZ);
end