public void SetStartupType(ServiceStartMode startMode) { RegistryEditor.WriteLocalMachineRegistryValue(@"SYSTEM\CurrentControlSet\Services\" + _serviceController.ServiceName, "Start", ((int)startMode).ToString(), Microsoft.Win32.RegistryValueKind.DWord); }
private void SetStartModeViaRegistry(ServiceStartMode startMode) { RegistryEditor.WriteLocalMachineRegistryValue(_servicesRegistryPath + _serviceController.ServiceName, "Start", ((int)startMode).ToString(), Microsoft.Win32.RegistryValueKind.DWord); }
public string GetServiceDLL() { return(RegistryEditor.ReadLocalMachineRegistryValue(_servicesRegistryPath + _serviceController.ServiceName + @"\Parameters", "ServiceDll")); }