Installing as Windows Service in Windows 7 Ultimate

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
User avatar
syth
Jr. Member
Jr. Member
Posts: 60
Joined: August 1st, 2008, 2:54 am
Location: Zed Zed 9 Plural Zed Alpha

Installing as Windows Service in Windows 7 Ultimate

Post by syth »

Downloaded SABnzbd 0.6.1 and installed it, and launched it normally to make sure everything came up, which it did. I then shutdown and opened up cmd and this is what I type:

Code: Select all

cd c:\Program Files\SABnzbd
SABnzbd-service.exe -f "c:\Program Files\SABnzbd\SABnzbd.exe" install
And then this is what I get back:

Code: Select all

Installing service SABnzbd
Error installing service: Access is denied. <5>
Cannot set required Registry info
I am running cmd when logged in as the admin user.

Also, in the http://wiki.sabnzbd.org/sabnzbd-as-a-windows-service wiki, the -f implies that it should be the path to the .ini file, since right after the command it says
The -f parameter is required. When running as a service, SABnzbd will be in "daemon" mode
and will not get the INI-file location from the user profile.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Installing as Windows Service in Windows 7 Ultimate

Post by shypike »

I don't think you read the instructions
or you might have seen that you need to install two services.
Also, the -f parameter is incorrect.

http://wiki.sabnzbd.org/sabnzbd-as-a-windows-service
User avatar
syth
Jr. Member
Jr. Member
Posts: 60
Joined: August 1st, 2008, 2:54 am
Location: Zed Zed 9 Plural Zed Alpha

Re: Installing as Windows Service in Windows 7 Ultimate

Post by syth »

shypike wrote: I don't think you read the instructions
or you might have seen that you need to install two services.
I did read the instructions. I posted a link to the instructions. I copied text from the instructions in my post. I have not gotten as far as installing the second service since installing the first service fails. Even if I try to installer the helpper service, I get the same "Access denied" error
shypike wrote:
Also, the -f parameter is incorrect.
Is incorrect how? Nowhere in the link does it specify exactly what is supposed to be in the .
Last edited by syth on May 17th, 2011, 10:26 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Installing as Windows Service in Windows 7 Ultimate

Post by shypike »

Right.
You are doing this from a command prompt that you "run as administrator", I hope?
Not just logged in as admin, that's not good enough.
You need maximum privileges to do this.

-f expects the path to the sabnzbd.ini file, so like:
c:\my\full\path\sabnzbd.ini or just c:\my\full\path
Post Reply