diff --git a/Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml b/Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml index cd1cc051c..e3eeb4e91 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml +++ b/Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml @@ -99,5 +99,6 @@ Unable to run {0} User Account Control Do you want to allow this app to make changes to your device? + Program location: {0} diff --git a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs index 3dd7ec012..8cf1f77da 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs @@ -221,10 +221,7 @@ namespace Flow.Launcher.Plugin.Program.Programs if (elevated) { // Since we are already elevated, we need to create UAC dialog manually - if (Main.Context.API.ShowMsgBox( - Main.Context.API.GetTranslation("flowlauncher_plugin_program_user_account_control_subtitle"), - Main.Context.API.GetTranslation("flowlauncher_plugin_program_user_account_control_title"), - MessageBoxButton.YesNo) != MessageBoxResult.Yes) + if (UACDialog.Show(IcoPath, Name, FullPath) != MessageBoxResult.Yes) { return; } diff --git a/Plugins/Flow.Launcher.Plugin.Program/UACDialog.xaml b/Plugins/Flow.Launcher.Plugin.Program/UACDialog.xaml new file mode 100644 index 000000000..d619f4765 --- /dev/null +++ b/Plugins/Flow.Launcher.Plugin.Program/UACDialog.xaml @@ -0,0 +1,154 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +