Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyway to make this program run when I turn my pc? #61

Closed
dragons4life opened this issue Sep 9, 2015 · 5 comments
Closed

Anyway to make this program run when I turn my pc? #61

dragons4life opened this issue Sep 9, 2015 · 5 comments

Comments

@dragons4life
Copy link

Anyway to make this program run when I turn my pc? kind of like a "start up" with skype or steam.

@amoshydra
Copy link

You may try to do this.

  1. Press Ctrl+R
  2. Enter shell:startup
  3. Create a shortcut for this program in the opened folder

@lukehsiao
Copy link

@amoshydra's suggestion works great. This issue can probably be closed.

@shadow1runner
Copy link

In order to run EZBlocker as administrator on startup/login you have to use a scheduled task, here's the file I use.
Simply exchange all the ***fields*** with your values and save the file as ezBlockerScheduleTask_RunAsAdmin.xml. As the preamble states simply execute it in a privileged shell using schtasks /create /tn "Spotify Ad-Blocker (Administrator)" /xml ezBlockerScheduleTask_RunAsAdmin.xml

<?xml version="1.0" encoding="UTF-16"?>
<!-- aso http://stackoverflow.com/a/5427746 -->
<!-- run in a privileged shell:
    schtasks /create /tn "Spotify Ad-Blocker (Administrator)" /xml ezBlockerScheduleTask_RunAsAdmin.xml-->
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2015-01-27T18:30:34</Date>
    <Author>me</Author>
  </RegistrationInfo>
  <Triggers>
    <LogonTrigger>
      <StartBoundary>2015-01-27T18:30:00</StartBoundary>
      <Enabled>true</Enabled>
    </LogonTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <UserId>***enter your user id here***</UserId>
      <LogonType>InteractiveToken</LogonType>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>false</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>PT0S</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>***enter path here, use quotes, e.g.: "D:\EzBlocker\EZBlocker.exe"***</Command>
    </Exec>
  </Actions>
</Task>

@Xeroday
Copy link
Owner

Xeroday commented May 20, 2016

I can implement a checkbox setting. The tricky part is that users may change where they decide to put EZBlocker so I'd have to add some additional checks for when the file gets moved.

@Xeroday
Copy link
Owner

Xeroday commented May 22, 2016

Autostart option added in v1.6.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants