How Can Registry Editor in .NET?



How Can Registry Editor in .NET?..

Answer / saravankumar

The Registry Editor is used for:
1. Creating registry keys
2. Creating values for registry keys
3. Importing a registry file.
Like the File System Editor, the Registry Editor is split
into two panes



The left-hand pane of the editor represents the registry
keys on the target computer. When a registry key is
selected, two things happen: the right-hand pane of the
editor will be updated to show the values that are to be
created under the selected registry key, and if the registry
key selected is not a root key in the left-hand pane,
Properties windows will be updated with a set of properties
for this registry key.



When a new deployment project is created, a set of registry
keys will be created which correspond to the standard base
registry keys of Windows. Notice in the screenshot that
there is a key defined with a name of [Manufacturer]. When
the installation is run, this will be replaced with the
value of the Manufacturer property. [Manufacturer] is a
property of the installation and can be used elsewhere
within the installation. There are a number of these
properties defined that can be used in much the same way.



Adding a value to a Registry key



We must to select the required registry key (or create it)
that is going to hold the registry values and then there are
a number of ways that we can add the registry values:



We can right-click the registry key and use the resulting
popup menu.

We can right-click in the right-hand pane and use the
resulting popup menu.

We can use the Action menu.

The Registry Editor can be used to specify values for new or
existing registry keys in the registry of a target machine.
Users can add string, binary, and DWORD values. During
installation the values will be written to the registry; any
existing values will be overwritten by the values that you
specify.



By default the Registry Editor displays a standard set of
registry keys that correspond with the standard Windows
registry keys: HKEY_CLASSES_ROOT, HKEY_CURRENT_USER,
HKEY_LOCAL_MACHINE, HKEY_USERS, and HKEY_PER_USER. For Setup
and Tier projects, additional keys that match the
Manufacturer property for the project are displayed under
HKEY_CURRENT_USER\ Software and HKEY_LOCAL_MACHINE\ Software.

Users can add your own keys under any registry key or
sub-key; add string, binary, or DWORD values to any key; or
import registry files. The first step that needs to be
completed is to select the following registry key in the
left-hand pane of the editor:

HKEY_CURRENT_USER\Software\ [Manufacturee].



The Registry key HKEY_CURRENT_USER is used to store registry
setting that apply to the currently logged in user.



To add a registry value



1. Select a key node in the Registry Editor.
Note : Values can't be added for the top-level nodes.
2. On the Action menu, point to New, and then click String
Value, Binary Value, or DWORD Value.
3. A value name is added to the value pane and the default
name is highlighted.
4. Type a name for the new value.
5. In the Properties window, select the Value property and
type a value.



To remove a registry value



1. Select the value name in the value pane of the Registry
Editor, and choose Delete from the Edit menu.
2. Most items in the Registry Editor, including keys and
values, can be moved between nodes via dragging with the
mouse or via the Cut and Paste commands on the Edit menu.
3. If a value exists in the registry, the windows installer
package will overwrite the existing value with that defined
in the Registry Editor

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

Why you want to leave your previous company.

0 Answers  


What are the benefits of Model-View-Controller Architecture?

1 Answers  


Explain the difference between public and static modifiers?

0 Answers  


What is Delegate? Have ever used Delegates in your project.

1 Answers   Deloitte,


What?s a proxy of the server object in .NET Remoting?

1 Answers  






What's singleton activation mode in .net?

0 Answers  


What is a design pattern and what is it for?

0 Answers  


What tools is used to develop .NET applications?

0 Answers  


questions on various scenarios on exception handling? like for example.... try { a; b; ...exception occurs here...what happens...will catch execute or will finally execute...will c execute c; } catch { a; b; c; } fianlly { a; b; }

1 Answers   Manhattan,


what is use of learning .net? does we get good jobs based on .net?

2 Answers  


How is a managed code executed?

1 Answers  


If you are executing these statements in commandobject. Select * from table1; select * from table2? How you will deal result set? 42. How do you sort a dataset.

0 Answers  


Categories