gcc -o initif .\initif_win.c
Use "task scheduler" for installation of the program.
- Windows-R
- Enter "task scheduler"
- Choice task scheduler library
- Click Create task
- Choice General tag
- Name: initif
- Check it "Run with highest privileges"
- Choice trigger tag and Click New
- Begin the task :"At log on"
- Choice Actions tag and Click New
- Action: "Start a program"
- Program/script: <initif script PATH>
- Choice Conditions tag
- Uncheck "Start the task only if the computer is on AC power"