I am trying to create and register a windows service with the following
svc = Service.new(:service_name => “rajiv_service_name”)
initialize': Access is denied. (Win32::Service::Error) from C:/Users/Rajiv/Documents/NetBeansProjects/MusicClockService/lib/register_bar_1.rb:9:innew’
I tried changing to:
svc = Service.new(:service_name =>SERVICE_NAME,
:service_start_name => “HOME\Rajiv”,
:password => “my_pwd” )
but it still did not work.