Click here to Skip to main content
15,894,539 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to create an exe file that install only once at all,means we cant use the exe file more than one time on any machines














Kindly help

any help will be great
Posted

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
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900