Re: path to aspnet_regiis
- From: wawang@xxxxxxxxxxxxxxxxxxxx (Walter Wang [MSFT])
- Date: Thu, 14 Dec 2006 05:50:52 GMT
Hi Dave,
The GetCORSystemDirectory function is not a managed function, it's in
mscoree.dll; you could call it from C++ code.
There's no registry key to tell you which path is .NET 2.0 framework
installed to, but you can use following registry key to detect if .NET 2.0
framework is installed:
=========
#.NET Framework 2.0 Redistributable Package Reference (.NET Framework
Deployment)
http://msdn.microsoft.com/library/en-us/dnnetdep/html/ndp2_refer.asp?frame=t
rue
Detecting Installed .NET Framework 2.0
The Setup.exe bootstrapper should use the following registry key to detect
the .NET Framework version 2.0.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727
It then verifies the existence of the entry value:
Install (DWORD value = 1)
==========
Actually you could just hardcode the path to
%windir%\Microsoft.NET\Framework\V2.0.50727; it's pretty safe, even for
current 3.0 version:
#Deploying Microsoft .NET Framework Version 3.0 ("Longhorn" Technical
Articles)
http://msdn.microsoft.com/library/en-us/dnlong/html/netfx30.asp?frame=true
Regards,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- References:
- Re: path to aspnet_regiis
- From: Dominick Baier
- Re: path to aspnet_regiis
- From: Walter Wang [MSFT]
- Re: path to aspnet_regiis
- Prev by Date: Re: Securing Webservice
- Next by Date: accessing SQL membership provider from a non asp.net application
- Previous by thread: Re: path to aspnet_regiis
- Next by thread: Re: path to aspnet_regiis
- Index(es):
Relevant Pages
|
|