Hello,
We have a registry key that we want to store by default with a blank value - but that the user can change manually using Regedit.... what is the preferred solution for this?
What we tried...
1. We create a property called SCHEDULER_CLIENTCERTIFICATETHUMBPRINT and have to set it to "-" because blank values aren't allowed
2. We perform a Search to check HKEY_LOCAL_MACHINE\SOFTWARE\CENTREL Solutions\XIA Configuration Scheduler\ClientCertificateThumbprint and put the value into SCHEDULER_CLIENTCERTIFICATETHUMBPRINT
3. We restore the value in the SCHEDULER_CLIENTCERTIFICATETHUMBPRINT value in the registry
The problem is this is...
1. In step one we are forced to set the property to a non empty value such as "-" or "NOT SET" which is a bit rubbish and is confusing for the user - we just want it blank.
2. The registry values cannot be configured to be set on First Install Only so if we set the registry value to blank directly (without using searches and properties) it is overwritten with a blank value every time an upgrade is performed.
3. If we don't set the registry value at all then the user has to manually create the registry value which isn't ideal - we'd prefer the user has an existing empty value that they can configure.
Thanks,
Dave