About "Turn Windows Feature on or off"

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?
 
A

Andrew McLaren

"chris" <VistaCh@gmail.com> wrote ...
> 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!

--
Andrew McLaren
amclar (at) optusnet dot com dot au
 
M

Mick Murphy

Start > Control Panel > Programs > Program Features > Add and Remove Windows
Components

Expand Net 3.0

"chris" wrote:

> 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?
>
>
 
M

Mick Murphy

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

Expand Net 3.0

"Andrew McLaren" wrote:

> "chris" <VistaCh@gmail.com> wrote ...
> > 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!
>
> --
> Andrew McLaren
> amclar (at) optusnet dot com dot au
>
>
 
C

chris

On Jul 10, 1:37 pm, "Andrew McLaren" <and...@fakeaddress.com> wrote:
> "chris" <Vist...@gmail.com> wrote ...
>
> > 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.
>
> Seehttp://msdn2.microsoft.com/en-us/library/aa480173.aspxfor details.
>
> Hope it helps!
>
> --
> Andrew McLaren
> amclar (at) optusnet dot com dot au


Thank you!
You are helpful
 
Back
Top Bottom