public static void UnRegisterShellExtension() { try { ComRegisterHelper.UnRegister(AppSetting.AppDataFolder_ShellExtensionsFullPath); if (File.Exists(AppSetting.AppDataFolder_ShellExtensionsFullPath)) { File.Delete(AppSetting.AppDataFolder_ShellExtensionsFullPath); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }