Fixed wrong package version, minor logging improvements

This commit is contained in:
N00MKRAD
2021-03-24 17:29:40 +01:00
parent 115cff131e
commit e59fd53de7
3 changed files with 5 additions and 8 deletions

View File

@@ -98,8 +98,8 @@
<Reference Include="HTAlt WinForms, Version=0.1.6.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\HTAlt.WinForms.0.1.6\lib\net461\HTAlt WinForms.dll</HintPath>
</Reference>
<Reference Include="HTAlt.Standart, Version=0.1.6.4, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\HTAlt.Standart.0.1.6.4\lib\netstandard2.0\HTAlt.Standart.dll</HintPath>
<Reference Include="HTAlt.Standart, Version=0.1.6.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\HTAlt.Standart.0.1.6\lib\netstandard2.0\HTAlt.Standart.dll</HintPath>
</Reference>
<Reference Include="Magick.NET-Q8-AnyCPU, Version=7.23.2.0, Culture=neutral, PublicKeyToken=2004825badfa91ec, processorArchitecture=MSIL">
<HintPath>packages\Magick.NET-Q8-AnyCPU.7.23.2.1\lib\net40\Magick.NET-Q8-AnyCPU.dll</HintPath>

View File

@@ -25,12 +25,9 @@ namespace Flowframes.OS
WindowsPrincipal principal = new WindowsPrincipal(user);
isAdmin = principal.IsInRole(WindowsBuiltInRole.Administrator);
}
catch (UnauthorizedAccessException ex)
{
isAdmin = false;
}
catch (Exception ex)
catch (Exception e)
{
Logger.Log("IsUserAdministrator() Error: " + e.Message);
isAdmin = false;
}
finally

View File

@@ -6,7 +6,7 @@
<package id="CyotekTabList" version="2.0.0" targetFramework="net472" />
<package id="diskdetector-net" version="0.3.2" targetFramework="net472" />
<package id="Fody" version="6.4.0" targetFramework="net472" developmentDependency="true" />
<package id="HTAlt.Standart" version="0.1.6.4" targetFramework="net472" />
<package id="HTAlt.Standart" version="0.1.6" targetFramework="net472" />
<package id="HTAlt.WinForms" version="0.1.6" targetFramework="net472" />
<package id="Magick.NET.Core" version="6.1.2" targetFramework="net472" />
<package id="Magick.NET-Q8-AnyCPU" version="7.23.2.1" targetFramework="net472" />