Rather than depend on Windows being clean enough to launch your program. (Some infections prevent anything removing them.) Have a version of your software on a USB, flash memory, or CD that boots stand-alone without needing the main operating system to scan and fix.