removed DependencyChecker code that was used to ensure VC2010 Redist x86 is installed

This commit is contained in:
Horst Beham
2021-04-25 18:41:53 +02:00
parent 8b956ed364
commit 5a07d36f56
10 changed files with 0 additions and 54 deletions

View File

@@ -91,7 +91,6 @@
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Utils\DelegateComparer.cs" />
<Compile Include="Utils\DependencyChecker.cs" />
<Compile Include="Utils\FileAssociation.cs" />
<Compile Include="Utils\Crc16.cs" />
<Compile Include="View\View.cs" />

View File

@@ -1,21 +0,0 @@
using System;
using System.IO;
namespace ChanSort.Api
{
public static class DepencencyChecker
{
public static bool IsVc2010RedistPackageX86Installed()
{
object value = Microsoft.Win32.Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\VC\VCRedist\x86",
"Installed", null);
return value != null && Convert.ToInt32(value) == 1;
}
public static void AssertVc2010RedistPackageX86Installed()
{
if (!IsVc2010RedistPackageX86Installed())
throw new FileLoadException("Please download and install the Microsoft Visual C++ 2010 Redistributable Package (x86)");
}
}
}