I think that he is asking for an exe which installs only once and after that it becomes use less. One way which I know for this to happen is that while installation you can write some file(say a blank txt file) at some location(say MyDocuments) of user's PC, and then while attempt for a second installation, exe can check if that file exists or not. In case if the file exists it will not install, otherwise will proceed further. You can check this for further reference.
Check here[^]
[Edit]: You can do this, when user has completed installation and is running the application for first time. At that time, write a txt file at any place on user's PC. Now, even after uninstallation, the file will always remain in user's PC and hence can be checked. :)
Anurag