From: Rajiv Abraham Date: 2010-04-16T19:34:59+09:00 Subject: Re: Win32 Service: Access Denied when creating service Luis Lavena wrote: > On Apr 15, 8:10�am, Rajiv Abraham wrote: >> > Error: >> > svc = Service.new(:service_name =>SERVICE_NAME, >> --platform=mswin32 >> - The doc. says that only :service_name is mandatory. So, it is bit >> surprising that it does not work >> - User Rajiv is Administrator > > Is the prompt from where are you invoking the ruby script running with > elevated privileges? > > On Vista and 7 even when user is Administrator it needs UAC elevation > to properly modify registry related to system Thanks Luis ! I run the file from netbeans 6.8 and you set me on the right path. Based on your answer, I poked about a bit and found [http://www.ruby-forum.com/topic/198439#905647] where Philippe Rubyeye provided an easy alternative(Running Netbeans as administrator). -- Posted via http://www.ruby-forum.com/.