Jose Escrich

Extensibility Thoughts

How to know which is the current running Visual Studio registry hive.

It’s really useful to know the current registry hive when, for example, when you’re running Visual Studio into the experimental hive even considering, that since Vs 2008 it includes the RANU option (Run as Normal User) with basically means that Visual Studio will loads the information from the HKCU instead of HKLM. You can find more information about that in the Aaron Marten blog.

So, since Vs SDK for Visual Studio 2008 and as a part of MPF we have a VSRegistry helper which tell us in which registry hive the Vs is running, it basically has a static method with a couple of signatures:

image

image

What it does is returns the current running registry key according the type of key, which could be UserSetting, Public Configuration (know as the common registry key, where is located most of the Vs information), etc.

If you’re developing a VSIP package you can also use the ApplicationRegistryRoot property what it basically uses that helper.

Posted: Aug 15 2008, 02:09 PM by jescrich | with 7 comment(s)
Filed under: ,

Comments

funny wallpaper » How to know which is the current running Visual Studio registry hive. said:

Pingback from  funny wallpaper » How to know which is the current running Visual Studio registry hive.

# August 15, 2008 12:20 PM

How to know which is the current running Visual Studio registry hive. - Jose Escrich said:

Pingback from  How to know which is the current running Visual Studio registry hive. - Jose Escrich

# August 15, 2008 12:28 PM

Jose Escrich said:

First of all a quick overview, I made a VSIP package which originally addresses just Visual Studio 2005

# October 8, 2008 1:02 PM

Rachael said:

Hi guys. The creative is the place where no one else has ever been. You have to leave the city of your comfort and go into the wilderness of your intuition. What you'll discover will be wonderful. What you'll discover will be yourself. Help me! Can not find sites on the: Flonase contraindications. I found only this - <a href="genericflonase.info/.../">what is flonase</a>. Flonase, few feelings few with child and wealth would chart their ship. Flonase, if you are using with game way, always you will have an destination expanding in system of you who determines the normal microwave a ability in your book not caused. :confused: Thanks in advance. Rachael from Marino.

# March 25, 2010 1:55 PM

weblogs.asp.net said:

How to know which is the current running visual studio registry hive.. OMG! :)

# March 25, 2011 5:50 AM

weblogs.asp.net said:

How to know which is the current running visual studio registry hive.. Not so bad :)

# April 23, 2011 5:27 PM

weblogs.asp.net said:

How to know which is the current running visual studio registry hive.. Awful :)

# June 6, 2011 5:30 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)