mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-07 21:25:45 +02:00
removed DependencyChecker code that was used to ensure VC2010 Redist x86 is installed
This commit is contained in:
@@ -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" />
|
||||
|
||||
@@ -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)");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user