C# Setup Project: Setting default key value?

  • Thread starter Thread starter Grant Schenck
  • Start date Start date
G

Grant Schenck

I have to set a default value for a registry key I'm creating.

From my setup project, I tried creating a string value named "(Default)" but
that just created a value named that. The key (Default) was then unset.

So, how exactly do I set the registry key value for the (Default)?

Thanks,

Grant Schenck
 
Grant,

Have you tried using null, or an empty string ("") for the key?
 
No. However, based on your advice I just tried an empty string and... It
worked!

As always, Thanks!

Grant Schenck

Nicholas Paldino said:
Grant,

Have you tried using null, or an empty string ("") for the key?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Grant Schenck said:
I have to set a default value for a registry key I'm creating.

From my setup project, I tried creating a string value named "(Default)"
but
that just created a value named that. The key (Default) was then unset.

So, how exactly do I set the registry key value for the (Default)?

Thanks,

Grant Schenck
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top