How do you find the Install location of the .NET Framework?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I would like to find the Install location of the .NET Framework at runtime, so I can run InstallUtil.exe.
The only way I can think of is to use the Environment variable 'windir' and add '\Microsoft.NET\Framework\v1.1.4322' to the end of it.

I would also like to confirm the .NET Framework version number at Runtime.

Any assistance you can provide would be appreciated.

Thanks,

Kent Moyle
 
It is installed to "C:\WINDOWS\Microsoft.NET\Framework". I don't think this
can be changed.

The version can be retreived from Environment.Version.

Kent Moyle said:
Hi,

I would like to find the Install location of the .NET Framework at
runtime, so I can run InstallUtil.exe.
The only way I can think of is to use the Environment variable 'windir'
and add '\Microsoft.NET\Framework\v1.1.4322' to the end of it.
 
Try System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory();


Nick Gallimore


Kent Moyle said:
Hi,

I would like to find the Install location of the .NET Framework at
runtime, so I can run InstallUtil.exe.
The only way I can think of is to use the Environment variable 'windir'
and add '\Microsoft.NET\Framework\v1.1.4322' to the end of it.
 
Back
Top