Click here to Skip to main content
15,886,519 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an application of which i have made exe file... As we all know to run that exe file there must be installed .net framework on the system. My question is that can't we bind or provide framework with exe itself..? means when exe runs, if the framework doesn't exists it'll automatically installs the framework and runs the exe file... Thanks in advance...
Posted
Comments
[no name] 1-May-13 8:47am    
Simply because if the framework is not installed to begin with, how would you expect your application to start up at all? Much less run and detect that the framework is not installed.
Eugene Mayeski 1-May-13 9:23am    
Actually EXE file of the .NET application has Win32 stub which can be replaced with custom bootstrapper.
Eugene Mayeski 1-May-13 9:23am    
.NET Framework comes preinstalled on Windows 7 and with later service packs of Windows XP.

1 solution

Build a Setup Project and make the .Net framework a pre-requisite. This will install the .Net framework / prompt you to install it. Then install your application.

http://support.microsoft.com/kb/307353[^]
 
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