Exforsys

VB.NET 2005

  1. VB.NET 2005 Free Training
  2. The .NET Framework Architecture Part 1
  3. The .NET Framework Architecture Part 2
  4. Application Class and Message Class
  5. Implementing Class Library Object
  6. Visual Studio.NET Namespaces
  7. .NET Assemblies
  8. Differences between VB.NET 1.0 and VB.NET 2.0
  9. Introducing VB.NET Windows Forms
  10. Visual Studio Windows Forms Designer
  11. Exploring the Forms Designer generated code
  12. Setting and Adding Properties to Windows Form
  13. Implementing Inheritance
  14. Event Handling In Visual Basic .NET
  15. Building Graphical Interface elements
  16. .NET Common Windows Forms Controls Part 1
  17. .NET Common Windows Forms Controls Part 2
  18. Common Controls and Handling Control Events
  19. DomainUpDown and NumericUpDown Controls
  20. Dialog Boxes in Visual Basic .NET
  21. Visual Studio Adding Controls to Windows Form
  22. VB.NET Validation Controls
  23. Working with Menu Controls
  24. VB.NET MDI Applications
  25. .NET Exceptions
  26. VB.NET Creating and Managing Components Part 1
  27. VB.NET Creating and Managing Components Part 2
  28. Simple Data Binding
  29. .NET Complex Data Binding
  30. .NET Data Form Wizard
  31. Data Manipulation with ADO.NET
  32. SQL Server Stored Procedures
  33. SQL Server Ad Hoc Queries
  34. Finding and Sorting Data in DataSets
  35. ADO.NET Object Model
  36. Working with DataSets
  37. Using XML Data
  38. Working with File System in .NET
  39. Creating Web Service
  40. Instantiating - Invoking Web Services, Creating Proxy Classes with WSDL
  41. Web Reference and Web Services
  42. Web Services - SOAP, WSDL, Disco and UDDI
  43. Web Application Testing in VB.NET 2005
  44. Web Application Tracing and Debugging
  45. Working with Legacy Code and COM Components
  46. ActiveX Controls and Legacy Code
  47. Windows Application Testing
  48. VB.NET Windows Application Testing
  49. Tracing VB.NET Windows Application
  50. Debugging Windows Applications In Visual Studio.NET 2005
  51. Deploying Windows Applications In Visual Studio.NET 2005
  52. Customizing Setup Project in Visual Studio.NET 2005
  53. Shared Assembly
  54. Microsoft .NET Creating Installation Components
  55. The Registry Editor in Visual Studio.NET 2005
  56. The File Types Editor

Ads


Home arrow Technical Training arrow VB.NET 2005

The Registry Editor in Visual Studio.NET 2005

Author : Exforsys Inc.     Published on: 4th Aug 2005

Visual Basic.NET 2005 Training

The Registry Editor

The Registry Editor is used for:

1. Creating registry keys
2. Creating values for registry keys
3. Importing a registry file.

Ads

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.

Ads

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_USERSoftware [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



 
This tutorial is part of a VB.NET 2005 tutorial series. Read it from the beginning and learn yourself.

VB.NET 2005

  1. VB.NET 2005 Free Training
  2. The .NET Framework Architecture Part 1
  3. The .NET Framework Architecture Part 2
  4. Application Class and Message Class
  5. Implementing Class Library Object
  6. Visual Studio.NET Namespaces
  7. .NET Assemblies
  8. Differences between VB.NET 1.0 and VB.NET 2.0
  9. Introducing VB.NET Windows Forms
  10. Visual Studio Windows Forms Designer
  11. Exploring the Forms Designer generated code
  12. Setting and Adding Properties to Windows Form
  13. Implementing Inheritance
  14. Event Handling In Visual Basic .NET
  15. Building Graphical Interface elements
  16. .NET Common Windows Forms Controls Part 1
  17. .NET Common Windows Forms Controls Part 2
  18. Common Controls and Handling Control Events
  19. DomainUpDown and NumericUpDown Controls
  20. Dialog Boxes in Visual Basic .NET
  21. Visual Studio Adding Controls to Windows Form
  22. VB.NET Validation Controls
  23. Working with Menu Controls
  24. VB.NET MDI Applications
  25. .NET Exceptions
  26. VB.NET Creating and Managing Components Part 1
  27. VB.NET Creating and Managing Components Part 2
  28. Simple Data Binding
  29. .NET Complex Data Binding
  30. .NET Data Form Wizard
  31. Data Manipulation with ADO.NET
  32. SQL Server Stored Procedures
  33. SQL Server Ad Hoc Queries
  34. Finding and Sorting Data in DataSets
  35. ADO.NET Object Model
  36. Working with DataSets
  37. Using XML Data
  38. Working with File System in .NET
  39. Creating Web Service
  40. Instantiating - Invoking Web Services, Creating Proxy Classes with WSDL
  41. Web Reference and Web Services
  42. Web Services - SOAP, WSDL, Disco and UDDI
  43. Web Application Testing in VB.NET 2005
  44. Web Application Tracing and Debugging
  45. Working with Legacy Code and COM Components
  46. ActiveX Controls and Legacy Code
  47. Windows Application Testing
  48. VB.NET Windows Application Testing
  49. Tracing VB.NET Windows Application
  50. Debugging Windows Applications In Visual Studio.NET 2005
  51. Deploying Windows Applications In Visual Studio.NET 2005
  52. Customizing Setup Project in Visual Studio.NET 2005
  53. Shared Assembly
  54. Microsoft .NET Creating Installation Components
  55. The Registry Editor in Visual Studio.NET 2005
  56. The File Types Editor
 

Comments