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
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&
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
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
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
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
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
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
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
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
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:
> ====
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
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
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
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
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
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
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
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:
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
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"
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.
22 matches
Mail list logo