private void CreateBaseKey(RegistryKey parent)
{
// create the registry key with a unique name each time - this makes it a little
// more difficult for people to find the key
//
string baseKeyName = string.Format("{{{0}}}", Guid.NewGuid().ToString().ToUpper());
_baseKey = parent.CreateSubKey(baseKeyName);
_baseKey.SetValue(null, _productData);
RegistryKey dateKey = _baseKey.CreateSubKey(_firstUseKeyName);
dateKey.SetValue(null, Encrypt(_firstUseDate.ToString()));
dateKey.Close();
// create the usage key and set the initial value
//
RegistryKey usageKey = _baseKey.CreateSubKey(_usageKeyName);
usageKey.SetValue(null, Encrypt(_usageCount.ToString()));
usageKey.Close();
// create the last use key and set the initial value
//
RegistryKey lastUseKey = _baseKey.CreateSubKey(_lastUseKeyName);
lastUseKey.SetValue(null, Encrypt(_lastUseDate.ToString()));
usageKey.Close();
}