1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Fix for Issue 86

This commit is contained in:
Ted 2016-06-06 23:22:58 -07:00
parent 449c811bde
commit 6d678b8ac7

View File

@ -1,6 +1,7 @@
using System.Drawing;
using System.Threading;
using System.Windows;
using Microsoft.Win32;
using Artemis.DeviceProviders.Logitech.Utilities;
using Artemis.Properties;
using Artemis.Utilities;
@ -23,9 +24,20 @@ namespace Artemis.DeviceProviders.Logitech
PreviewSettings = new PreviewSettings(540, 154, new Thickness(25, -80, 0, 0), Resources.g910);
}
// TODO: https://github.com/SpoinkyNL/Artemis/issues/86
public override bool CanEnable()
{
//Check to see if VC++ 2012 x64 is installed.
if (Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Classes\Installer\Dependencies\{ca67548a-5ebe-413a-b50c-4b9ceb6d66c6}") == null)
{
CantEnableText = "Couldn't connect to your Logitech G910.\n" +
"The Visual C 2012 Redistributable could not be found, which is required.\n" +
"Please download it by going to the following URL:\n\n" +
"https://www.microsoft.com/download/confirmation.aspx?id=30679";
return false;
}
if (DllManager.RestoreDll())
RestoreDll();
int majorNum = 0, minorNum = 0, buildNum = 0;