From 6d678b8ac7dea7ff0341ec393f34ea2918c94d67 Mon Sep 17 00:00:00 2001 From: Ted Date: Mon, 6 Jun 2016 23:22:58 -0700 Subject: [PATCH] Fix for Issue 86 --- Artemis/Artemis/DeviceProviders/Logitech/Orion.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Artemis/Artemis/DeviceProviders/Logitech/Orion.cs b/Artemis/Artemis/DeviceProviders/Logitech/Orion.cs index a6c97541f..62321bec3 100644 --- a/Artemis/Artemis/DeviceProviders/Logitech/Orion.cs +++ b/Artemis/Artemis/DeviceProviders/Logitech/Orion.cs @@ -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;