Giter Site home page Giter Site logo

Comments (5)

shadow1runner avatar shadow1runner commented on June 21, 2024 1

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>

from spotify-ad-blocker.

amoshydra avatar amoshydra commented on June 21, 2024

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

from spotify-ad-blocker.

lukehsiao avatar lukehsiao commented on June 21, 2024

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

from spotify-ad-blocker.

Xeroday avatar Xeroday commented on June 21, 2024

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.

from spotify-ad-blocker.

Xeroday avatar Xeroday commented on June 21, 2024

Autostart option added in v1.6.7.

from spotify-ad-blocker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.