Python Forum
[split] Could you please clarify where i did mistake also how run without admin right - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: [split] Could you please clarify where i did mistake also how run without admin right (/thread-33965.html)



[split] Could you please clarify where i did mistake also how run without admin right - Abubakkar - Jun-14-2021

Could you please clarify where i did mistake also how run without admin right

import winreg as wreg
import webbrowser
def newregkey():
    key = wreg.CreateKey(wreg.HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Silverlight")
    wreg.SetValue(key, 'NewSubkey','AllowElevatedTrustAppsInBrowser')
    wreg.SetValueEx(key, 'ValueName', 0, wreg.REG_DWORD, '00000001')
    key.Close()

    key = wreg.CreateKey(wreg.HKEY_LOCAL_MACHINE, "SOFTWARE\\WOW6432Node\\Microsoft\\Silverlight")
    wreg.SetValue(key, 'NewSubkey',  'AllowElevatedTrustAppsInBrowser')
    wreg.SetValueEx(key, 'ValueName', 0, wreg.REG_DWORD, '00000001')
    key.Close()

    iexplore = "C:\Program Files\Internet Explorer\iexplore.exe"

    webbrowser.get(iexplore).open_new_tab("https://heliwise.agustawestland.com/OnlineHelp/OnlineHelp.htm")



RE: [split] Could you please clarify where i did mistake also how run without admin right - Larz60+ - Jun-14-2021

what error messages are you getting?
what's happening that makes you feel there is something wrong?
Please read: https://python-forum.io/misc.php?action=help&hid=19