From 853f6732cf86b6522a986466020d639edc1c7936 Mon Sep 17 00:00:00 2001 From: Josuan Albin Date: Thu, 7 May 2015 23:05:35 +0200 Subject: [PATCH] setup.py fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit as of 1.44 the winreg key is now under: Wow6432Node\Bohemia Interactive Studio\ArmA 3 key n°0 instead of 1 --- tools/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/setup.py b/tools/setup.py index 1b9ab119d93..0d9007eb4ce 100644 --- a/tools/setup.py +++ b/tools/setup.py @@ -37,8 +37,8 @@ def main(): try: reg = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE) key = winreg.OpenKey(reg, - r"SOFTWARE\Wow6432Node\bohemia interactive\arma 3") - armapath = winreg.EnumValue(key,1)[1] + r"SOFTWARE\Wow6432Node\Bohemia Interactive Studio\ArmA 3") + armapath = winreg.EnumValue(key,0)[1] except: print("Failed to determine Arma 3 Path.") return 1