Revadike / epicgames-freebies-claimer

Claim available free game promotions from the Epic Games Store.
MIT License
2.23k stars 361 forks source link

Tutorial for lazy people (Programm will start on startup) ONLY WINDOWS #116

Closed Florian-Mahlberg closed 3 years ago

Florian-Mahlberg commented 3 years ago

Hi, I know, we are all lazy so, here is a tutorial for all WINDOWS 10 Users, to start this programm on startup.

First install like the Documentations says. I downloaded it in D:\EpicGamesClaimer so please change all directorys!

We need to edit the config.json file a bit, so we have no terminal on our screen.

The loop line should be "loop": false and not "loop": true.

Press WIN + R and a window will open. Enter taskschd.msc and press enter.

In the bar at the top select Create Task.

Name it whatever you want and if you want to add a description. Tap on Change User or Group... and enter System in the big box. And press OK

Check the Box Run with highest privileges

Check, if you have it like this: FirstStep

Go to triggers and create a new: Change the dropdown Begin the task: to At log on Activate Stop task if it runs longer than: and enter the time of 30 minutes

Compate it with the image to be sure, you dont forget anything:

SecondStep

Save with OK

Now we are going to the Actions tab and click on New..

The Action should be Start a program by default.

In the Box Program/script: we enter the location of the npm command. By default it is "C:\Program Files\nodejs\npm.cmd"

As arguments we use --prefix <path> run start Change to the location where you copied your files!!

We are checking again: ThirdStep

And closing this window by pressing OK.

Now just checking conditions for a sec:

Fourth

And edit in the settings tab a few things:

FirstStep

And if everything is correct (by me and by you), we are now the laziest people I have ever seen. I hope I could help you out a bit.

Some other stuff:

If something is gone wrong, just comment, I should answer in a couple of days.

If someone wants me to do a UNIX (Linux / MacOS tutorial please put it in the comments too ;) )

Revadike commented 3 years ago

The wiki is a better place for this. I linked to a section about running it as service via NSSM. I like your Windows Scheduler version too. Maybe put both methods in a separate page about running it as a service. Please, try to keep it nice and clean, use markdown.

You go to line 109 and change the line Logger.info(Waiting ${delay} minutes); to process.exit(0);

You should simply change the loop option in the config to false...

And if you, Revadike, are seeing this, it would be grat if you change the README.md a bit so everyone can see there is a option to run this on the start of the pc.

Again wiki. The wiki is also linked in README.md.

Florian-Mahlberg commented 3 years ago

Well happy to hear it comes to the wiki. Sorry for the markdown ^^ and yes, you could just change the loop.

Revadike commented 3 years ago

Anyone can edit the wiki

Florian-Mahlberg commented 3 years ago

Didn't know, i'll do that in a couple of days