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

Feature Request, use Task Scheduler by default to "autostart" #475

Closed
jefflord opened this issue Oct 13, 2023 · 3 comments · Fixed by #477
Closed

Feature Request, use Task Scheduler by default to "autostart" #475

jefflord opened this issue Oct 13, 2023 · 3 comments · Fixed by #477

Comments

@jefflord
Copy link

Why not just always use this? Was it deemed not worth it?

For most "dev" type people elevated is must.

@RamonUnch
Copy link
Owner

I understand the advantage, however I do not want to be one of those program that has an autostart that is hidden in the task scheduler.

I rather prefer to have my program listed in the Startup tab of the task manager, so it can clearly be seen by the user if he chooses to handle its startup programs in a centralized and nice fashion like it should be.

I thought about adding another option but it would be confusing, So for now the simplest solution is to run the command line to add the scheduled task, should not be hard for a dev. Also the AltSnap.xml file can be used to setup the task.

What I will do however is to add batch files in AtSnap's folder, to add/remove AltSnap scheduled task

@jefflord
Copy link
Author

I totally agree with the mixed feelings about programs that use Task Scheduler.

I think it's sad that Task Manager does not see these as Autoruns can show, enable and disable them.

Thanks for confirming, I do agree with you. And I also LOVE that you mention the issue with the current method AND the solution in a message box.

I think only issue is the discoverability and next steps, because I did not know there was already an "AltSnap.xml". I don't think it's mentioned in the message the user sees. It only says "...or use the Task Scheduler". I created it from scratch because I did not know "AltSnap.xml" was (almost) ready for me to use/import.

If you:

  1. Create some batch or method to help with this, including using the correct/current path to AltSnap (not placeholder in current xml) as you are suggesting and...
  2. Update the message that tells the user that this stuff exists, I would be a happy camper.

Also, a nice to have, on the weirdness of Task Scheuler and it being used by "normal apps"... When I see this I do like when the program uses a new folder for itself to make it simpler to find and then a "normal" name. E.g.:

schtasks /create /xml .\AltSnap.xml /tn "RamonUnch-AltSnap\Login Auto Start"
and
<URI>\RamonUnch-AltSnap\Login Auto Start</URI>

image

Thanks!

@shodanx2
Copy link

shodanx2 commented Jan 8, 2024

Note the following command will create a task to start altsnap as administrator when you login

schtasks /create /f /tn "RunAltSnap" /tr "%appdata%\AltSnap\AltSnap.exe" /sc onlogon /rl highest

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

Successfully merging a pull request may close this issue.

3 participants