Hey Jason,

Try starting with a read operation so you know you're interacting with the e=
xpected registry. The wow32 node has caught me by surprise a few times.=20

Jams

On May 31, 2012, at 9:20 PM, Jason Burgett <lists / ruby-forum.com> wrote:

> I'm trying to edit 1 key in the Windows 7 registry and I'm having
> trouble. Here's what I have so far:
>=20
> -------------------
>=20
> require 'win32/registry'
>=20
> keyname =3D 'Software\Tightvnc\Server'
> access =3D Win32::Registry::KEY_ALL_ACCESS
>=20
> Win32::Registry::HKEY_LOCAL_MACHINE.open(keyname, access) do |reg|
>  reg['Password'] =3D '7a,2f,07,fd,36,74,7c,52'
> end
>=20
> -------------------
>=20
> The key has a BINARY value that is already set to another value. When I
> run the .rb file from an administrative command prompt it seems to run
> with no errors, but the value never changes.
>=20
> --=20
> Posted via http://www.ruby-forum.com/.
>=20