Skip to content

Commit 33d134a

Browse files
committed
Merge branch 'release/v2.1'
2 parents 3b62aa6 + fcb6958 commit 33d134a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

StreamDeckSimHub.Installer/Actions/StartStreamDeckSoftware.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ protected override Task<ActionResult> ExecuteInternal()
5050

5151
private string GetStreamDeckInstallFolder()
5252
{
53-
var installPath = (string)Registry.GetValue(Configuration.StreamDeckRegistryFolder, Configuration.StreamDeckRegistryInstallFolder, null);
53+
// Try the new registry location first, then the old one.
54+
var installPath = (string)Registry.GetValue(Configuration.StreamDeckSetupRegistryFolder, Configuration.StreamDeckRegistryInstallFolder, null) ??
55+
(string)Registry.GetValue(Configuration.StreamDeckRegistryFolder, Configuration.StreamDeckRegistryInstallFolder, null);
5456
return installPath;
5557
}
5658
}

StreamDeckSimHub.Installer/Tools/Configuration.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ public static class Configuration
1212
public const string PluginProcessName = "StreamDeckSimHub";
1313

1414
public const string StreamDeckRegistryFolder = @"HKEY_CURRENT_USER\SOFTWARE\Elgato Systems GmbH\StreamDeck";
15+
public const string StreamDeckSetupRegistryFolder = @"HKEY_CURRENT_USER\SOFTWARE\Elgato Systems GmbH\StreamDeck (Setup)";
1516
public const string StreamDeckRegistryInstallFolder = "InstallDir";
16-
public static readonly string StreamDeckDefaultInstallFolder = Path.Combine("C:", "Program Files", "Elgato", "StreamDeck");
17+
public static readonly string StreamDeckDefaultInstallFolder = Path.Combine(@"C:\", "Program Files", "Elgato", "StreamDeck");
1718

1819
public static readonly string AppDataRoaming = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
1920
public static readonly string StreamDeckPluginDir = Path.Combine(AppDataRoaming, "Elgato", "StreamDeck", "Plugins");

0 commit comments

Comments
 (0)