I had the exact same problem because I didn't want to use that Installer thing with VisualStudio and wanted to make a command line installer that invoked installutil.exe . At the time I sticked with a not very portable solution but now I found a set of Registry Keys that can help you:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NetFramework Here you can find an "InstallRoot" key that will be something like "c:\Windows\Microsoft.Net\Framework" and you can build the rest of the folder name by parsing some of the other keys I guess. In my system it would be: "c:\Windows\Microsoft.Net\Framework\v1.1.4322\InstallUtil.exe" Good luck ----- Original Message ----- From: "Mitesh Patel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 02, 2004 9:43 PM Subject: [ADVANCED-DOTNET] how to get current installed .NET Framework path. > I'm looking for .NET Framework installation path using which i can execute > InstallUtil.exe from setup.exe and install the Windows NT Service. > Is there anyone knows how to get full .NET installation path and also > active .NET Framework on O.S. > > Thanks in advance, > Cheers, > Mitesh > > =================================== > This list is hosted by DevelopMentor� http://www.develop.com > Some .NET courses you may be interested in: > > NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles > http://www.develop.com/courses/gaspdotnetls > > View archives and manage your subscription(s) at http://discuss.develop.com > =================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com
