diff --git a/Wox/SettingWindow.xaml.cs b/Wox/SettingWindow.xaml.cs index d20bf53779..698ea8c9f9 100644 --- a/Wox/SettingWindow.xaml.cs +++ b/Wox/SettingWindow.xaml.cs @@ -339,7 +339,14 @@ namespace Wox private void BtnEnableInstaller_OnClick(object sender, RoutedEventArgs e) { - Process.Start("Wox.UAC.exe", "AssociatePluginInstaller"); + try + { + Process.Start("Wox.UAC.exe", "AssociatePluginInstaller"); + } + catch (Exception) + { + //throw an exception when user click cancel in UAC prompt window. + } } #region Theme