Could someone point me to any example code that could be used for automatic web updates for an EXE?

I would like to give my users an option to click "Update" and have the most recent version of the EXE downloaded and replace the current EXE.

Thanks!