Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #63019

Registry Key Value Help

From "J. McGaha" <j2mcgaha@gmail.com>
Subject Registry Key Value Help
Date 2014-01-02 18:12 -0600
Newsgroups comp.lang.python
Message-ID <mailman.4821.1388717968.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Good evening, I am a complete noob at Python.  I am attempting to create a
key and update its value.  The code below is what I have come up with after
reading everything I can get my hands on.  

 

When I run the this code I get an error that says the 'int' can't be called.

 

I appreciate your help

 

 

 

import _winreg as wr
aReg = wr.ConnectRegistry(None, wr.HKEY_LOCAL_MACHINE)
targ = r'SOFTWARE\Policies\Google\Update'
aKey = wr.OpenKey(aReg, targ, 0, wr.KEY_WRITE)
wr.KEY_SET_VALUE(aKey,"DisableAutoUpdateChecksCheckboxValue",  1,
wr.REG_DWORD)
wr.CloseKey(aKey)
wr.CloseKey(aReg)
  

 

I appreciate your help

 

 

John

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Registry Key Value Help "J. McGaha" <j2mcgaha@gmail.com> - 2014-01-02 18:12 -0600

csiph-web