K
Kevin R
Hi All,
I need to establish that the machine on which my user intends to run
my program is at least .Net version 1.1 SP2 and am having a little
trouble figuring out how to do this.
I don't want the user to have to mess about with the Administrative
tools, or mmc.exe. I just need my program to figure out on first run
whether the environment supports a particular action.
I see that there is a property of the Environment class
called Version, which on my machine returns the numbers
1.1.4322.2032
It's not clear from this what the service pack is.
Microsoft say in KB318785 to look for a registry key
HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework
Setup\NDP\v1.1.4322
and the SP revision is given there.
This is great while .Net is still on version 1.1, but what happens
when it becomes version 1.2 ? That registry key probably won't
exist anymore. I don't want to have to distribute another version
of my program.
Is there a way I can find out whether the CLR version is
equal to or greater than Version 1.1 SP2 ?
Thanks for any suggestions.
Kevin R
I need to establish that the machine on which my user intends to run
my program is at least .Net version 1.1 SP2 and am having a little
trouble figuring out how to do this.
I don't want the user to have to mess about with the Administrative
tools, or mmc.exe. I just need my program to figure out on first run
whether the environment supports a particular action.
I see that there is a property of the Environment class
called Version, which on my machine returns the numbers
1.1.4322.2032
It's not clear from this what the service pack is.
Microsoft say in KB318785 to look for a registry key
HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework
Setup\NDP\v1.1.4322
and the SP revision is given there.
This is great while .Net is still on version 1.1, but what happens
when it becomes version 1.2 ? That registry key probably won't
exist anymore. I don't want to have to distribute another version
of my program.
Is there a way I can find out whether the CLR version is
equal to or greater than Version 1.1 SP2 ?
Thanks for any suggestions.
Kevin R