fyr77 / EnvyUpdate

Small update checker application for NVIDIA GeForce GPUs
MIT License
137 stars 7 forks source link

Update local driver version periodically #27

Closed Xaeroxe closed 1 year ago

Xaeroxe commented 1 year ago

I'd like Util.GetLocDriv to get called occasionally without having to relaunch the program. Ideally we'd hook this to an event for a new program getting installed (Maybe through ManagementEventWatcher?)

If an event driven model wouldn't work, then it should run once every few hours, with the ability to manually trigger it via a "Refresh" button.

fyr77 commented 1 year ago

That is a great idea. I'll get to it as soon as I can.

fyr77 commented 1 year ago

I added a FileSystemWatcher to watch Program Files\NVIDIA Corporation\Installer2\InstallerCore for changes. I hope this works, time will tell. Commit 1b8e59cf1469d7229acd706ad1d851a1c213f3c2.

fyr77 commented 1 year ago

This will be included in the next update, closing this issue for now. In case it doesn't work properly, feel free to reopen it.

fyr77 commented 1 year ago

Nevermind, something is crashing it now. Reopening.

fyr77 commented 1 year ago

Alright, it should work now. Please let me know of any issues.

Xaeroxe commented 1 year ago

Worked great when I tested it just now, thanks!