msi: Set the install state to INSTALLSTATE_LOCAL for components with compressed files.
This commit is contained in:
parent
40556ae08f
commit
98d1486410
|
@ -1323,6 +1323,12 @@ static UINT load_file(MSIRECORD *row, LPVOID param)
|
|||
|
||||
file->state = msifs_invalid;
|
||||
|
||||
if (file->Attributes & msidbFileAttributesCompressed)
|
||||
{
|
||||
file->Component->Action = INSTALLSTATE_LOCAL;
|
||||
file->Component->ActionRequest = INSTALLSTATE_LOCAL;
|
||||
}
|
||||
|
||||
TRACE("File Loaded (%s)\n",debugstr_w(file->File));
|
||||
|
||||
list_add_tail( &package->files, &file->entry );
|
||||
|
|
|
@ -1744,10 +1744,7 @@ static void test_states(void)
|
|||
r = MsiGetComponentState(hpkg, "eta", &state, &action);
|
||||
ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r );
|
||||
ok( state == INSTALLSTATE_ABSENT, "Expected INSTALLSTATE_ABSENT, got %d\n", state);
|
||||
todo_wine
|
||||
{
|
||||
ok( action == INSTALLSTATE_LOCAL, "Expected INSTALLSTATE_LOCAL, got %d\n", action);
|
||||
}
|
||||
|
||||
MsiCloseHandle( hpkg );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue