How can I make my C# app erase itself (self-destruct)? Here\'s two ways that I think might work:
There's a MoveFileEx API, which, when given a MOVEFILE_DELAY_UNTIL_REBOOT flag, will delete specified file on next system startup.
MOVEFILE_DELAY_UNTIL_REBOOT