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)");
}
}
}

View File

@@ -89,8 +89,6 @@ namespace ChanSort.Loader.Hisense.ChannelDb
public ChannelDbSerializer(string inputFile) : base(inputFile)
{
DepencencyChecker.AssertVc2010RedistPackageX86Installed();
this.Features.ChannelNameEdit = ChannelNameEditMode.All;
this.Features.DeleteMode = DeleteMode.NotSupported;
this.Features.CanSkipChannels = false;

View File

@@ -98,8 +98,6 @@ namespace ChanSort.Loader.Hisense.ServicelistDb
public ServicelistDbSerializer(string inputFile) : base(inputFile)
{
DepencencyChecker.AssertVc2010RedistPackageX86Installed();
Features.ChannelNameEdit = ChannelNameEditMode.All;
Features.DeleteMode = DeleteMode.FlagWithPrNr;
Features.CanSkipChannels = true;

View File

@@ -39,8 +39,6 @@ namespace ChanSort.Loader.Panasonic
#region ctor()
public Serializer(string inputFile) : base(inputFile)
{
DepencencyChecker.AssertVc2010RedistPackageX86Installed();
this.Features.ChannelNameEdit = ChannelNameEditMode.None; // due to the chaos with binary data inside the "sname" string column, writing back a name has undesired side effects
this.Features.DeleteMode = DeleteMode.Physically;
this.Features.CanSkipChannels = true;

View File

@@ -97,9 +97,6 @@ namespace ChanSort.Loader.Philips
this.chanLstBin.Load(this.FileName, msg => this.logMessages.AppendLine(msg));
this.dataFilePaths.Add(this.FileName);
if (chanLstBin.VersionMajor >= 25 && chanLstBin.VersionMajor <= 45) // need VC2010 Redist for the SQLite library
DepencencyChecker.AssertVc2010RedistPackageX86Installed();
var dir = Path.GetDirectoryName(this.FileName) ?? "";
var channellib = Path.Combine(dir, "channellib");
var s2channellib = Path.Combine(dir, "s2channellib");

View File

@@ -24,8 +24,6 @@ namespace ChanSort.Loader.Samsung.Zip
#region ctor()
public DbSerializer(string inputFile) : base(inputFile)
{
DepencencyChecker.AssertVc2010RedistPackageX86Installed();
this.Features.ChannelNameEdit = ChannelNameEditMode.All;
this.Features.DeleteMode = DeleteMode.Physically;
this.Features.CanSkipChannels = true;

View File

@@ -21,8 +21,6 @@ namespace ChanSort.Loader.Toshiba
public ChmgtDbSerializer(string inputFile) : base(inputFile)
{
DepencencyChecker.AssertVc2010RedistPackageX86Installed();
Features.ChannelNameEdit = ChannelNameEditMode.All;
Features.DeleteMode = DeleteMode.Physically;
Features.CanSkipChannels = false;

View File

@@ -22,8 +22,6 @@ namespace ChanSort.Loader.Toshiba
#region ctor()
public SettingsDbSerializer(string inputFile) : base(inputFile)
{
DepencencyChecker.AssertVc2010RedistPackageX86Installed();
this.Features.ChannelNameEdit = ChannelNameEditMode.All;
this.Features.DeleteMode = DeleteMode.Physically;
this.Features.CanSkipChannels = false;

View File

@@ -141,23 +141,6 @@ namespace ChanSort.Ui
private void InitAppAfterMainWindowWasShown()
{
if (!DepencencyChecker.IsVc2010RedistPackageX86Installed())
{
if (XtraMessageBox.Show(this,
"Some channel list file formats can only be read when the\n" +
"Microsoft Visual C++ 2010 Redistributable Package (x86) is installed.\n" +
"\nDo you want to open the download page and quit ChanSort?",
"ChanSort",
MessageBoxButtons.YesNo,
MessageBoxIcon.Question,
MessageBoxDefaultButton.Button1) == DialogResult.Yes)
{
System.Diagnostics.Process.Start("https://www.microsoft.com/en-us/download/details.aspx?id=5555");
Application.Exit();
return;
}
}
if (Config.Default.CheckForUpdates)
this.BeginInvoke((Action) UpdateCheck.CheckForNewVersion);
}