msi/tests: Check the x86 program directory first for installed files.

oldstable
Alexandre Julliard 2010-07-02 14:14:44 +02:00
parent d0f60b05d1
commit 044669e709
3 changed files with 6 additions and 3 deletions

View File

@ -308,7 +308,8 @@ static BOOL get_program_files_dir(LPSTR buf)
return FALSE;
size = MAX_PATH;
if (RegQueryValueEx(hkey, "ProgramFilesDir", 0, &type, (LPBYTE)buf, &size))
if (RegQueryValueEx(hkey, "ProgramFilesDir (x86)", 0, &type, (LPBYTE)buf, &size) &&
RegQueryValueEx(hkey, "ProgramFilesDir", 0, &type, (LPBYTE)buf, &size))
return FALSE;
RegCloseKey(hkey);

View File

@ -3246,7 +3246,8 @@ static BOOL get_system_dirs(void)
return FALSE;
size = MAX_PATH;
if (RegQueryValueExA(hkey, "ProgramFilesDir", 0, &type, (LPBYTE)PROG_FILES_DIR, &size)) {
if (RegQueryValueExA(hkey, "ProgramFilesDir (x86)", 0, &type, (LPBYTE)PROG_FILES_DIR, &size) &&
RegQueryValueExA(hkey, "ProgramFilesDir", 0, &type, (LPBYTE)PROG_FILES_DIR, &size)) {
RegCloseKey(hkey);
return FALSE;
}

View File

@ -159,7 +159,8 @@ static BOOL get_program_files_dir( char *buf, char *buf2 )
return FALSE;
size = MAX_PATH;
if (RegQueryValueExA( hkey, "ProgramFilesDir", 0, &type, (LPBYTE)buf, &size ))
if (RegQueryValueExA( hkey, "ProgramFilesDir (x86)", 0, &type, (LPBYTE)buf, &size ) &&
RegQueryValueExA( hkey, "ProgramFilesDir", 0, &type, (LPBYTE)buf, &size ))
{
RegCloseKey( hkey );
return FALSE;