Click here to Skip to main content
15,907,392 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
i have a winform application and i want to create setup for it.my application need an exe file to install in machine in order to it can work correctly. so i want to install that exe file before my application setup starts.i have used Installer Class but it runs the exe file after the setup has finished. how can i do that?
Posted

1 solution

Probably you can't - and certainly not reliably.
.NET applications need the .NET framework, which is checked and if necessary installed by the installer package. If it is not installed, then your application cannot run. So you need to run the installer first.

However, you could run your application as part of the setup process - a registration component say - which runs before the setup is complete. There are instructions for that here: http://msdn.microsoft.com/en-us/library/d9k65z2d(VS.80).aspx[^]
 
Share this answer
 
Comments
M_Mogharrabi 14-Nov-11 3:21am    
thanks OriginalGriff,i have changed my way,now i want to run my exe file just after the setup has finished.how can i do that?
OriginalGriff 14-Nov-11 3:30am    
More complex than you think!
See the discussion here: http://stackoverflow.com/questions/60565/how-to-run-executable-at-end-of-setup-project

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