Search code examples
c#visual-studio-2015installationvisual-studio-setup-proje

Correct way to create Registry Key using C# installer


I have created installer project in visual studio, Now my task is to add Registry Key of installer And i have done creating Registry key from installer like Right click on installer project -> view -> registry it create Registry Key with provided Name but it add Default Name also in that

Name
(Default)

ABC

Data
(value not set)

c:....\

why (Default) is created i just want ABC


Solution

  • Why (Default) is created i just want ABC

    It's the expected behavior that you see the Name(default) in registry editor.

    enter image description here

    As I know, there's no registry key that doesn't have that line. Its value can be empty, but that line will always exists.

    You can easily check this by creating a new key in Registry Editor, you'll see the default line there.