.NET Framework detection

D

Derrick

Hi again,

Paul and Dan, thanks for the dotnetfx.exe info!

In general, I have a C# app, being distributed on a cd, no installation
program. Is there any common code that I could use in the application
startup for detecting that the user needs to install .net framework and
throw up a simple dialog pointing to location of dotnetfx.exe I am going to
redistribute?

Thanks again!

Derrick
 
T

Tamir Khason

Check if folder %WINDIR%/Microsoft.Net exist in 90% there is FW installed in
this computer.
 
B

Bob Grommes

Your application won't even start up if it's a .NET app and the framework
isn't installed.

You might want to check out the following:

www.codeproject.com/dotnet/DeployingFrameworkMdac.asp

Note the resources referenced at the bottom of the article, particularly the
third one. Haven't tried it yet, but it looks like a great way to install
both the framework *and* MDAC, which can be missing or an old version on the
target system too. If you need any sort of DB access that can also be a
show-stopper.

--Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top