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

Windhawk setup hang when creating scheduled task #418

Open
magCmod opened this issue Feb 26, 2025 · 4 comments
Open

Windhawk setup hang when creating scheduled task #418

magCmod opened this issue Feb 26, 2025 · 4 comments
Labels
bug Something isn't working info-needed Further information is requested

Comments

@magCmod
Copy link

magCmod commented Feb 26, 2025

Windhawk setup hang when creating scheduled task, nothing happens - has to use task manager to cancel setup

@magCmod magCmod added the bug Something isn't working label Feb 26, 2025
@m417z
Copy link
Member

m417z commented Feb 26, 2025

Does it happen every time, or did it only happen once? Are you using an antivirus?

The installer just runs the schtasks /create /tn WindhawkRunUITask /xml "<temp_extracted_files>\WindhawkRunUITask.xml" command. The file content is below. Please try running it yourself and report back what happens:

  • Copy the code below to Notepad.
  • Save it to WindhawkRunUITask.xml to some folder, such as your desktop.
  • Open an elevated cmd window.
  • Run the following command:
    schtasks /create /tn WindhawkRunUITask /xml "<path>\WindhawkRunUITask.xml"
    

Does it work? Does it hang? Is anything printed?

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <URI>\WindhawkRunUITask</URI>
  </RegistrationInfo>
  <Triggers />
  <Principals>
    <Principal id="Author">
      <GroupId>S-1-5-32-545</GroupId>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>Parallel</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</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>
    <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
    <UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>PT0S</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>C:\Program Files\Windhawk\windhawk.exe</Command>
      <Arguments>-run-ui-as-admin</Arguments>
    </Exec>
  </Actions>
</Task>

@m417z m417z added the info-needed Further information is requested label Feb 26, 2025
@m417z m417z changed the title cannot install Windhawk setup hang when creating scheduled task Feb 26, 2025
@magCmod
Copy link
Author

magCmod commented Feb 27, 2025

Hi, I tried 3 times and it happend at the same spot every time, running the command alone in a terminal work fine though. Yes I do have Antivirus and I cannot turn it off.... :(

@m417z
Copy link
Member

m417z commented Feb 27, 2025

Which antivirus are you using? Maybe it's related, I don't have another idea for why it can happen. The best thing I think of is adding a flag to the installer to skip creating the scheduled task, as it's not strictly necessary.

For now, as a workaround, you can try using the portable version.

@magCmod
Copy link
Author

magCmod commented Feb 27, 2025

Its Panda Antivirus, yes it worked to install in portable mode. But my antivirus still block it from executing, thanks anyway I try to exclude it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working info-needed Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants