Microsoft KB Archive/906765

= When you create a registry key and a value in a Visual Studio Setup project, the value for the registry key may be empty when you install the application on a computer =

Article ID: 906765

Article Last Modified on 1/15/2007

-

APPLIES TO


 * Microsoft Visual Studio 2005 Standard Edition
 * Microsoft Visual Studio 2005 Professional Edition
 * Microsoft Visual Studio .NET 2003 Professional Edition
 * Microsoft Visual Studio .NET 2003 Enterprise Architect
 * Microsoft Visual Studio .NET 2003 Enterprise Developer
 * Microsoft Visual Studio .NET 2003 Academic Edition
 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * Microsoft Visual Studio .NET 2002 Academic Edition

-





SYMPTOMS
When you create a registry key and a value in a Microsoft Visual Studio Setup project, the value for the registry key may be empty when you install the application on a computer. This issue may occur if you use the Registry Editor in Microsoft Visual Studio 2005 or in Microsoft Visual Studio .NET to create the registry key for the project.



CAUSE
This issue occurs if the left bracket ([) character is the first character in the Value field in the Visual Studio Registry Editor.



RESOLUTION
To resolve this issue, use the Formatted data type to format the value. For example, to create a value of [ABC] for a registry key, type the following in the Value field in the Visual Studio Registry Editor:

[\[]ABC[\]]



Steps to reproduce the issue
 In Visual Studio 2005 or in Visual Studio .NET, create a new Setup project. On the View menu, point to Editor, and then click Registry. Expand . Right-click Software, point to New, and then click String Value. Type Test, and then press ENTER. Click Test, and then type [ABC] in the Value field of the Properties window.</li> Compile the project.</li> Install the application on a computer.</li> Verify that the value for the following registry key is empty:

</li></ol>

<div class="references_section">