Page 1 of 1

Start Episode Butler as Windows 7 service?

Posted: March 20th, 2010, 10:34 pm
by tret
Has anyone been able to get Episode Butler set up to autostart on Windows 7 Bootup without disabling UAC?

Re: Start Episode Butler as Windows 7 service?

Posted: March 21st, 2010, 9:48 am
by Eejit
Yes.
I have it start via Task Scheduler, triggered on user log-on and when a network is detected.
Not as a service, but it work's for me

Re: Start Episode Butler as Windows 7 service?

Posted: March 22nd, 2010, 11:06 am
by tret
Eejit wrote: Yes.
I have it start via Task Scheduler, triggered on user log-on and when a network is detected.
Not as a service, but it work's for me
Hey Eejit, you mind posting the steps on how you accomplished this? You were able to do this without disabling or altering UAC?

Thanks

Re: Start Episode Butler as Windows 7 service?

Posted: March 22nd, 2010, 11:32 am
by Eejit
Hi tret,
the UAC is still at the Default level. Here is the .xml for my scheduled task. Just copy it and rename it to "Start EB.xml" You will obviously have to edit a couple of tags :-
Eejit-PC-Win7\Eejit
Eejit-PC-Win7\Eejit
to suit your PC name and user account. All you should need to do is import it as a task and then edit it as you see fit.
This is the easiest way I can think of describing what I've done. This is Win 7 Pro x64 BTW

Code: Select all

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2009-10-23T14:21:05.6066</Date>
    <Author>Eejit-PC-Win7\Eejit</Author>
  </RegistrationInfo>
  <Triggers>
    <LogonTrigger>
      <Enabled>true</Enabled>
      <UserId>Eejit-PC-Win7\Eejit</UserId>
    </LogonTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <UserId>Eejit-PC-WIN7\Eejit</UserId>
      <LogonType>Password</LogonType>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>true</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>true</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>true</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
    <Priority>7</Priority>
    <RestartOnFailure>
      <Interval>PT1M</Interval>
      <Count>3</Count>
    </RestartOnFailure>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>"C:\Program Files (x86)\SABnzbd\Episodebutler\Episodebutler.exe"</Command>
    </Exec>
  </Actions>
</Task>
Hope this helps. PM if you require more info.

Re: Start Episode Butler as Windows 7 service?

Posted: March 29th, 2010, 4:07 pm
by tret
Hey Eejit,

Works great, thanks for posting this!

Rob

Re: Start Episode Butler as Windows 7 service?

Posted: March 29th, 2010, 4:21 pm
by Eejit
No problems mate.  Glad you got it sorted.  You can add the "-nogui" switch to the command to make EB start quietly.

Re: Start Episode Butler as Windows 7 service?

Posted: March 30th, 2010, 2:59 pm
by tret
Eejit wrote: No problems mate.  Glad you got it sorted.  You can add the "-nogui" switch to the command to make EB start quietly.
Yup, did exactly that since it's a little silly to have the browser launch with it.

Re: Start Episode Butler as Windows 7 service?

Posted: June 13th, 2010, 2:44 pm
by teamscooby
All I did was add it into the registry:

Start / Run / Regedit

HKEY Local Machine\Software\Microsoft\Windows\CurrentVersion\Run

Create a new string value and enter the location to the .exe file for Episode Butler, I also added the  "-nogui" to the end so it doesnt launch in the browser when windows starts.

hope this helps