you can try outputting the code to delete App.Exe into a vbscript (.vbs) file, execute that and terminate the program. Make sure the vbs pauses long enough for your program to close, or vbs won't be able to delete the file. Make sure the vbs has the instructon to delete itself at the end too. afaik, vbs is loaded into memory, so file is not used, and can be deleted.

I'm not sure of the command to delete a file from vbs.