diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 7d3220f..a72a54c 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -39,5 +39,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.2.8.5")] -[assembly: AssemblyFileVersion("1.2.8.5")] +[assembly: AssemblyVersion("1.2.8.7")] +[assembly: AssemblyFileVersion("1.2.8.7")] diff --git a/Utilities/File/FileLnk.cs b/Utilities/File/FileLnk.cs index 5791fe7..09ef296 100644 --- a/Utilities/File/FileLnk.cs +++ b/Utilities/File/FileLnk.cs @@ -72,6 +72,11 @@ namespace SystemTrayMenu.Utilities resolvedFilename = link.Path; } } + catch (UnauthorizedAccessException) + { + // https://stackoverflow.com/questions/2934420/why-do-i-get-e-accessdenied-when-reading-public-shortcuts-through-shell32 + // e.g. Administrative Tools\Component Services.lnk which can not be resolved, do not spam the logfile in this case + } catch (Exception ex) { Log.Warn($"shortcutFilename:'{shortcutFilename}'", ex);