About "Turn Windows Feature on or off"

  • Thread starter Thread starter chris
  • Start date Start date
C

chris

I have developed a program using dotnet, Now i want to deploy on other
Vista machine,
It's OK in most of cast, but if User have turned off the ".NET 3.0",
my program can't work.

So i need to detect whether the ".NET 3.0" is on in my setup program,
Does anybody know how to do it?
 
chris said:
So i need to detect whether the ".NET 3.0" is on in my setup program,
Does anybody know how to do it?

Unfortunately, there is no API to get the Framework version.

Look at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework
Setup\NDP\v3.0\Setup

See if DWORD value InstallSuccess == 1.

If true, .NET 3.0 is installed.

See http://msdn2.microsoft.com/en-us/library/aa480173.aspx for details.

Hope it helps!
 
Start > Control Panel > Programs > Program Features > Add and Remove Windows
Components

Expand Net 3.0
 
Start > Control Panel > Programs > Program Features > Add and Remove Windows
Features.

Expand Net 3.0
 
Unfortunately, there is no API to get the Framework version.

Look at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework
Setup\NDP\v3.0\Setup

See if DWORD value InstallSuccess == 1.

If true, .NET 3.0 is installed.

Seehttp://msdn2.microsoft.com/en-us/library/aa480173.aspxfor details.

Hope it helps!

Thank you!
You are helpful
 

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

Back
Top