From: Jan Svitok Date: 2006-08-09T22:56:38+09:00 Subject: Re: WIN32: writing registry entries? On 8/9/06, Hadmut Danisch wrote: > Hi, > > I am trying to change values in the Windows Registry. > With regedit, I can read and write the values. > With ruby, I can read, but as soon as I try to write, > I get a access denied error. > > codepiece: > > registry.open(regpath) do |reg| > puts reg[regentry] > reg[regentry, Win32::Registry::REG_DWORD]=value > end > > > reading works, writing fails. > > Any idea? registry.open(regpath, Win32::Registry::KEY_WRITE) do |reg| > regards > Hadmut