public static void UnregisterServer() { // Create a new registry tools object RegistryTools registry = new RegistryTools() { Hive = PluginHive }; // This is a 32-bit plugin, so determine if the target // key needs to access a WoW emulation key string key = String.Format( @"{0}\{1}", ((Platform.GetPlatform() == PlatformType.X64) ? PluginKeyWow : PluginKey), PluginGuid ); // Loop through each of the plugin settings and // delete them from the registry foreach (var setting in PluginSettings) { registry.DeleteValue( key, setting.Key ); } // Delete the plugin key altogether registry.DeleteKey(PluginKey); }
public void DeleteKey() { Console.SetCursorPosition(45, 2); // Inicio Console.WriteLine("Eliminar una Llave y los valores que almacena"); Console.WriteLine(""); string path = SetPath(); Console.WriteLine(registro.DeleteKey(path)); } //Finish