PDA

View Full Version : How Delete Application Itself?



kimhana1984
29th October 2010, 09:19
Hi everyone,

I'm programming an cross-platform installer with qt. When run "uninstall.exe" file, other files can delete and uninstall.exe itself can't delete.

How to delete the uninstall.exe file?

IWIH
29th October 2010, 10:37
Hi!:cool:
Actually I'm not an expert in QT, but, I think I can give you a thought how to make that; you can make "uninstall.exe" rely on the "command prompt" to delete the files, but, be sure to place the deletion code in the end of the program's code to ensure that the "uninstall.exe' would be terminated and then "command prompt" would delete it.
*May the above thought is not clear to be done, but, any program removing operation flows the same way; make a system component delete the running 'exe' after terminates it.

Sorry for prolixity, and hope to have useful of my post.