pgkt04 / defender-control

An open-source windows defender manager. Now you can disable windows defender permanently.
MIT License
1.4k stars 120 forks source link

Remove prompts and run it silently? #9

Closed xHyperVoid closed 2 years ago

xHyperVoid commented 2 years ago

Hi, I just started out in github im wondering if you can add a feature so we can run them in silent without the prompts? maybe add start arguments as "-s" to run it silently? or have it run in cmd as like "disable-defender.exe -silent"

xHyperVoid commented 2 years ago

I figured it out now by just checking the .sln project What i did is basically Deleted Gui Changed main.cpp line 55 to system("exit")

Building it runs the .exe without prompts

pgkt04 commented 2 years ago

this works but its better to just comment out the system call so the program returns properly

pgkt04 commented 2 years ago

Added in the latest release. Launch disable-defender.exe with -s argument from an elevated shell.