Re: [winreg] How to access "(Default)" key value?

2022-05-03 Thread MRAB
On 2022-05-03 10:31, Nicolas Formichella wrote: Hello, I am encountering an issue with winreg, I can't figure out how to read the "(Default)" of a registry value ``` def get_chrome_version() -> str: with winreg.ConnectRegistry(None, winreg.HKEY_CURRENT_USER) as regis

[winreg] How to access "(Default)" key value?

2022-05-03 Thread Nicolas Formichella
Hello, I am encountering an issue with winreg, I can't figure out how to read the "(Default)" of a registry value ``` def get_chrome_version() -> str: with winreg.ConnectRegistry(None, winreg.HKEY_CURRENT_USER) as registry: with winreg.OpenKeyEx(registry, r&

Re: Winreg

2020-07-31 Thread David L Neil via Python-list
On 31/07/2020 16:48, R Pasco wrote: Thanks for your extensive info. Its too bad this isn't published in the python winreg/_winreg modules' info. Ray Pasco Welcome to the world of documentation! Perhaps you have 'discovered' something, or maybe you're using the to

Re: Winreg

2020-07-31 Thread R Pasco
s overly complicated and needlessly confusing. Thanks for your extensive info. Its too bad this isn't published in the python winreg/_winreg modules' info. Ray Pasco On Fri, Jul 31, 2020 at 12:43 AM R Pasco wrote: > My code was simply experimental and will be much refined in the future

Re: Winreg

2020-07-30 Thread Eryk Sun
e key HKEY_LOCAL_MACHINE:SOFTWARE requires KEY_WOW64_64KEY > to be 'OR'ed. Winreg gives no indication of this requirement, but the > Windows doc "Redirected, Shared, and Reflected Keys Under WOW64" does > specifically mention HKEY_CURRENT_USER :SOFTWARE as needing this added

replying to the mailing list (was: Winreg)

2020-07-30 Thread Cameron Simpson
On 30Jul2020 20:25, Barry Scott wrote: >Use the Reply or Reply-To-All feature of your email program and it will do the >rest for you. Plain "reply" is often only "reply-to-author" for many mailers. I use "reply-to-all" myself, and edit the headers if that seems excessive. Some mailers (eg mut

Re: Winreg

2020-07-30 Thread dn via Python-list
On 31/07/2020 07:25, Barry Scott wrote: Use the Reply or Reply-To-All feature of your email program and it will do the rest for you. I can't find instructions for the proper way to reply to 'python list'. Is it simply a matter of keeping the message title identical to the original message and

Re: Winreg

2020-07-30 Thread Barry Scott
sage title identical to the original > message and emailing again to python-list@python.org ? I'll reply both ways > to test this. > > Yes, it's the 64/32-bit views that got me stuck. I think I've got it mostly > figured out. The key HKEY_LOCAL_MACHINE:SOFTWARE requires K

Winreg

2020-07-30 Thread R Pasco
hat got me stuck. I think I've got it mostly figured out. The key HKEY_LOCAL_MACHINE:SOFTWARE requires KEY_WOW64_64KEY to be 'OR'ed. Winreg gives no indication of this requirement, but the Windows doc "Redirected, Shared, and Reflected Keys Under WOW64" does specifically me

Re: Winreg

2020-07-30 Thread Barry Scott
you check that the key is present? > > I'm using regedit.exe to try to view it. > > Are you aware that there is one registry for 32 bit code and a separate > registry for 64 bit code. > > Only vaguely. Are the "separate" registries really 64 and 32 views of the on

Re: Winreg

2020-07-29 Thread Barry
ow do you check that the key is present? Are you aware that there is one registry for 32 bit code and a separate registry for 64 bit code. if you run a 32 bit program to write the registry it will not be seen by 64 bit code for example. Barry > > Code: > ====

Winreg

2020-07-29 Thread R Pasco
I'm running python 3.8 on Windows 8.1 x64. Running the following code produces no errors but does not add a key, name or value. I had no problems doing this using _wirreg under python 2.7. Any insight will be helpful. Code: === import winreg hive = winreg.HKEY_LOCAL_MA

Re: Good Tutorial for Python3 winreg Module

2016-08-20 Thread eryk sun
On Sun, Aug 21, 2016 at 3:55 AM, wrote: > > I need to pull a saved value from the registry, and the only way I > know how to get it is through winreg. Here's an example that reads the value and type of "Temp" in HKCU\Environment: import winreg

Good Tutorial for Python3 winreg Module

2016-08-20 Thread johncalvinhall
Does anyone have a good tutorial on how to use the Python 3 module winreg? I need to pull a saved value from the registry, and the only way I know how to get it is through winreg. If anyone is able to help, I sure would appreciate it. -- https://mail.python.org/mailman/listinfo/python-list

Re: winreg - access mask

2010-04-30 Thread Tim Roberts
Richard Lamboj wrote: > >if i want to read, write a key and set a value, does i only need to set >KEY_WRITE, or does i need to set KEY_READ, KEY_WRITE and KEY_SET_VALUE? > >This questions is related to the OpenKey Function. You need KEY_READ|KEY_WRITE|KEY_SET_VALUE. Those constants are straight

winreg - access mask

2010-04-28 Thread Richard Lamboj
Hello, if i want to read, write a key and set a value, does i only need to set KEY_WRITE, or does i need to set KEY_READ, KEY_WRITE and KEY_SET_VALUE? This questions is related to the OpenKey Function. http://docs.python.org/py3k/library/winreg.html <- The other Access modes are missing in th

Re: Problem with winreg - The object is not a PyHKEY object

2009-08-21 Thread Stephen Hansen
On Fri, Aug 21, 2009 at 9:33 AM, Jamie wrote: > My goal is to remotely remove the registry keys for McAfee. I don't > know how winreg handles an exception if a key doesn't exist, but I > setup my script to skip the exception. But it doesn't seem to work > right.. I

Problem with winreg - The object is not a PyHKEY object

2009-08-21 Thread Jamie
My goal is to remotely remove the registry keys for McAfee. I don't know how winreg handles an exception if a key doesn't exist, but I setup my script to skip the exception. But it doesn't seem to work right.. I think the script should be self explanitory, please help! Please forgiv

Re: winreg module, need help to understand why i'm getting exception

2008-04-19 Thread s0suk3
Sorry, the above post is not complete. This is the rest: # There should be a for or a while loop around here try: name = _winreg.EnumValue(key, index) except EnvironmentError: # It raises WindowsError, but the _winreg documentation # recommends catching EnvironmentError break else:

Re: winreg module, need help to understand why i'm getting exception

2008-04-19 Thread s0suk3
On Apr 19, 6:20 am, hellt <[EMAIL PROTECTED]> wrote: > HI all, i found winreg module > fromhttp://www.rutherfurd.net/python/winreg/index.html > very useful and simple, instead _winreg. > > But i have a problem with this module, in its iterable part. > > look at the f

winreg module, need help to understand why i'm getting exception

2008-04-19 Thread hellt
HI all, i found winreg module from http://www.rutherfurd.net/python/winreg/index.html very useful and simple, instead _winreg. But i have a problem with this module, in its iterable part. look at the following code key = Key(HKLM,r"SYSTEM\CurrentControlSet\Services\Tcpip\Enum"

:: winreg ::

2005-05-31 Thread A.K.Sabin
Hi Evrbdy, I do struggle with Registry Keys. ( _winreg ) I am able to Create Keys inside HKEY_LOCAL_MACHINE, =_winreg.HKEY_LOCAL_MACHINE/ IE EXTENSION is MY AIM SOFTWARE/Microsoft/Internet Explorer/Extensions I cant assign the values to CLSID, HOT ICON, EXEC, Default Visible. Please Help me out.