MSI: set the Path registry value to the install directory

This commit is contained in:
Reece H. Dunn
2016-01-30 18:51:27 +00:00
parent f850179478
commit 7a50cbcdcc
2 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -272,10 +272,10 @@ ESPEAK_NG_API void espeak_ng_InitializePath(const char *path)
}
buf[0] = 0;
RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Speech\\Voices\\Tokens\\eSpeak", 0, KEY_READ, &RegKey);
RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\eSpeak NG", 0, KEY_READ, &RegKey);
size = sizeof(buf);
var_type = REG_SZ;
RegQueryValueExA(RegKey, "path", 0, &var_type, buf, &size);
RegQueryValueExA(RegKey, "Path", 0, &var_type, buf, &size);
sprintf(path_home, "%s\\espeak-data", buf);
#elif defined(PLATFORM_DOS)