C# Class WindowsStartupTool.Lib.RegistryEditor

Author: Narek Yegoryan
Inheritance: IDisposable
Show file Open project: narekye/win-tools Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

IDisposable support

GetAllStartupAppsFromRegistry ( SkippableSourceEnum skipSource = SkippableSourceEnum.None ) : string>.Dictionary
GetStartupAppsFromRegistry ( TargetPlatformEnum platform = TargetPlatformEnum.x32 ) : string>.Dictionary

Returns the list of startup programs on remote machine, with executable file path's

InitializeRegistry ( string subKey = "", TargetPlatformEnum targetPlatform = TargetPlatformEnum.x32 ) : void

Initializes RegistryEditor to passed in registry key value

RegistryEditor ( string machine, RegistryLookupSourceEnum source = RegistryLookupSourceEnum.Machine, bool startServiceIfNeeded = false ) : Microsoft.Win32
RemoveRegistryValueByKey ( string subKey, string registryKey ) : void

Removes specified key value pair from registry sub key

RemoveStartupAppByKey ( string key ) : void

Removes an app with spacified key from startup

SetRegistry ( string subKey, string registryKey, string registryValue ) : void

Sets the registry with specified sub key

SetStartupAppToRegistry ( string key, string executeablePath ) : void

If application with the same key is exists function will replace the value

Method Details

Dispose() public method

IDisposable support
public Dispose ( ) : void
return void

GetAllStartupAppsFromRegistry() public method

public GetAllStartupAppsFromRegistry ( SkippableSourceEnum skipSource = SkippableSourceEnum.None ) : string>.Dictionary
skipSource SkippableSourceEnum
return string>.Dictionary

GetStartupAppsFromRegistry() public method

Returns the list of startup programs on remote machine, with executable file path's
public GetStartupAppsFromRegistry ( TargetPlatformEnum platform = TargetPlatformEnum.x32 ) : string>.Dictionary
platform TargetPlatformEnum
return string>.Dictionary

InitializeRegistry() public method

Initializes RegistryEditor to passed in registry key value
public InitializeRegistry ( string subKey = "", TargetPlatformEnum targetPlatform = TargetPlatformEnum.x32 ) : void
subKey string
targetPlatform TargetPlatformEnum
return void

RegistryEditor() public method

public RegistryEditor ( string machine, RegistryLookupSourceEnum source = RegistryLookupSourceEnum.Machine, bool startServiceIfNeeded = false ) : Microsoft.Win32
machine string
source RegistryLookupSourceEnum
startServiceIfNeeded bool
return Microsoft.Win32

RemoveRegistryValueByKey() public method

Removes specified key value pair from registry sub key
public RemoveRegistryValueByKey ( string subKey, string registryKey ) : void
subKey string
registryKey string
return void

RemoveStartupAppByKey() public method

Removes an app with spacified key from startup
public RemoveStartupAppByKey ( string key ) : void
key string
return void

SetRegistry() public method

Sets the registry with specified sub key
public SetRegistry ( string subKey, string registryKey, string registryValue ) : void
subKey string
registryKey string
registryValue string
return void

SetStartupAppToRegistry() public method

If application with the same key is exists function will replace the value
public SetStartupAppToRegistry ( string key, string executeablePath ) : void
key string
executeablePath string
return void