How can i create application that will run once and after that it will "delete itself" in windows OS?

im trying to use QFILE::remove() but its not working..