Click here to Skip to main content
15,886,069 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
is there a way to tell setup.exe file to check if its first run or not during installation ? I am using visual studio 2010 to create setups files.
Posted
Updated 5-Mar-12 18:33pm
v2
Comments
psgviscom 6-Mar-12 0:34am    
Not clear

One way is to check if there is any registry parameter present which is created by the setup file during its first run.

for example:
Let say your setup.exe runs for the first time. It check if registry parameter "HKLM\Software\MySoftware\Installed" is present or not. If not present then it is its first run and setup.exe creates this registry parameter as a last step of installation. Now when setup.exe runs for the second time it checks this registry parameter, it will be present as setup.exe has created this registry parameter during its first run.
 
Share this answer
 
the problem is when i try to run the setup file into another machine...
 
Share this answer
 

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