Shreyan Avigyan <shreyan.avig...@gmail.com> added the comment:
Actually behind the scenes, winreg uses win32api which doesn't allow setting HKEY_LOCAL_MACHINE keys for unprivileged users. Running the application in admin mode may work because at that point your application getting admin privileges but it also may not work because winreg module may not gain admin privileges even though your application does. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44046> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com