msi: Use the ProgramFileDir reg value instead of ProgramFilesPath.
This commit is contained in:
parent
9bc12ade13
commit
7330a03200
|
@ -465,7 +465,6 @@ static BOOL init_function_pointers(void)
|
|||
static BOOL get_program_files_dir(LPSTR buf)
|
||||
{
|
||||
HKEY hkey;
|
||||
CHAR temp[MAX_PATH];
|
||||
DWORD type = REG_EXPAND_SZ, size;
|
||||
|
||||
if (RegOpenKey(HKEY_LOCAL_MACHINE,
|
||||
|
@ -473,11 +472,9 @@ static BOOL get_program_files_dir(LPSTR buf)
|
|||
return FALSE;
|
||||
|
||||
size = MAX_PATH;
|
||||
if (RegQueryValueEx(hkey, "ProgramFilesPath", 0, &type, (LPBYTE)temp, &size))
|
||||
if (RegQueryValueEx(hkey, "ProgramFilesDir", 0, &type, (LPBYTE)buf, &size))
|
||||
return FALSE;
|
||||
|
||||
ExpandEnvironmentStrings(temp, buf, MAX_PATH);
|
||||
|
||||
RegCloseKey(hkey);
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -642,8 +639,6 @@ static void test_MsiInstallProduct(void)
|
|||
r = MsiInstallProductA(msifile, NULL);
|
||||
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r);
|
||||
|
||||
todo_wine
|
||||
{
|
||||
ok(delete_pf("msitest\\cabout\\new\\five.txt", TRUE), "File not installed\n");
|
||||
ok(delete_pf("msitest\\cabout\\new", FALSE), "File not installed\n");
|
||||
ok(delete_pf("msitest\\cabout\\four.txt", TRUE), "File not installed\n");
|
||||
|
@ -656,7 +651,6 @@ static void test_MsiInstallProduct(void)
|
|||
ok(delete_pf("msitest\\filename", TRUE), "File not installed\n");
|
||||
ok(delete_pf("msitest\\service.exe", TRUE), "File not installed\n");
|
||||
ok(delete_pf("msitest", FALSE), "File not installed\n");
|
||||
}
|
||||
|
||||
res = RegOpenKey(HKEY_LOCAL_MACHINE, "SOFTWARE\\Wine\\msitest", &hkey);
|
||||
ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res);
|
||||
|
|
Loading…
Reference in New Issue