Jun-14-2021, 06:21 AM
(This post was last modified: Jun-14-2021, 07:18 AM by Yoriz.
Edit Reason: Added code tags
)
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")