Added support for 64 bit windows
parent
5144742e95
commit
58ef357cbf
|
@ -70,9 +70,13 @@ namespace LaunchSLClient
|
||||||
RegistryKey exeKey;
|
RegistryKey exeKey;
|
||||||
regKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Linden Research, Inc.\SecondLife");
|
regKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Linden Research, Inc.\SecondLife");
|
||||||
if (regKey == null)
|
if (regKey == null)
|
||||||
|
{
|
||||||
|
regKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Wow6432Node\Linden Research, Inc.\SecondLife");
|
||||||
|
if (regKey == null)
|
||||||
{
|
{
|
||||||
throw new LauncherException("Can't find Second Life. Are you sure it is installed?", "LauncherException.Form1");
|
throw new LauncherException("Can't find Second Life. Are you sure it is installed?", "LauncherException.Form1");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Object exe = regKey.GetValue("Exe");
|
Object exe = regKey.GetValue("Exe");
|
||||||
exeFlags = regKey.GetValue("Flags");
|
exeFlags = regKey.GetValue("Flags");
|
||||||
exePath = regKey.GetValue("");
|
exePath = regKey.GetValue("");
|
||||||
|
|
Loading…
Reference in New Issue