Sometimes its best to keep it simple:
string dotNetPath = RuntimeEnvironment.GetRuntimeDirectory();
And next time you go and try hunting for where Windows is installed or something silly like that, remember, its all stored in the registry...
Related posts