Click here to Skip to main content
15,886,810 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hello,

I'm making an installer for my C# .NET application.It's asking for few requirements such as Framework version and IE version.How can i do that if ie version of .NET framework version is not installed navigate user to specific website or run exe which will install framework and ie?
Posted
Updated 22-Aug-14 5:41am
v2

You have two options: 1) claim certain version of .NET as a prerequisite; it should not be the save version as your target framework version, it should be that version or any later version; 2) install .NET framework with your application.

Please see:
http://support.microsoft.com/kb/818016[^],
http://msdn.microsoft.com/en-us/library/adyexc1h%28v=vs.90%29.aspx[^],
http://msdn.microsoft.com/en-us/library/xak0tsbd%28v=vs.90%29.aspx[^],
http://msdn.microsoft.com/en-us/library/6hbb4k3e%28v=vs.110%29.aspx[^].

You will need to detect is some version of .NET is already installed, and which are installed. It depends on the installation toolbox you are using; it should be possible in all cases.

—SA
 
Share this answer
 
Most installers are native applications: they check the required .NET version is present, and if it isn't they automatically download and install it so that the target application can run.

If you are writing your own installer, you pretty much can't do it in C# - as the installer would require the correct .NET version before it could run.
The exception to this is if you can restrict your users to particular operating systems which include a minimum .NET version and then write the installer for that version in it's properties. For example, Vista included .NET version 2 so if you target that, your installer should run on all later systems.
There is a list here: http://blogs.msdn.com/b/astebner/archive/2007/03/14/mailbag-what-version-of-the-net-framework-is-included-in-what-version-of-the-os.aspx[^]
 
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