Beispiel #1
0
 public void SetValue(
     string start,
     ServiceStartupTypes value,
     RegistryValueKind dWord)
 {
     Key?.SetValue(start, value, dWord);
 }
 private void SetStartValue(ServiceStartupTypes value)
 {
     if (!IsInstalled) return;
     var regKey = GetServiceRegistryKey();
     if (regKey == null) throw new Exception("Unable to open service registry key for '" + ServiceName + "'");
     regKey.SetValue("Start", value, RegistryValueKind.DWord);
 }