; a common trick to make a program self-destruct is to have it
write a tiny batch file, and, as the very last thing it does before
closing, starting this batch file with a winexec(batchfilename, SW_HIDE );
The batch deletes the program and then can delete itself.
The last line is a
del %0
and it is *not* terminated with a carriage return/line feed pair.