msi/tests: Check the x86 program directory first for installed files.
This commit is contained in:
parent
d0f60b05d1
commit
044669e709
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue