Fix crash issue when user clicked cancel in UAC prompt window.

This commit is contained in:
qianlifeng 2014-04-13 18:16:58 +08:00
parent 58801f8fb6
commit b07d1b027c

View File

@ -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