How can I make my C# app erase itself (self-destruct)? Here\'s two ways that I think might work:
You will never be able to guarantee that this will work, as long as you require a physical presence on the machine. For example:
If your application requires this level of security, consider hosting it on a machine you control (e.g., by providing a web service and letting a stub client access it that way).
On a somewhat related note, one is also tempted to speculate about the motives of someone who (1) requires a physical presence on someone's machine and (2) wants to delete the evidence that the app existed.