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


Groups > comp.lang.python > #63019 > unrolled thread

Registry Key Value Help

Started by"J. McGaha" <j2mcgaha@gmail.com>
First post2014-01-02 18:12 -0600
Last post2014-01-02 18:12 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

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

#63019 — Registry Key Value Help

From"J. McGaha" <j2mcgaha@gmail.com>
Date2014-01-02 18:12 -0600
SubjectRegistry Key Value Help
Message-ID<mailman.4821.1388717968.18130.python-list@python.org>

[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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web