msi: Set the install state to INSTALLSTATE_LOCAL for components with compressed files.

This commit is contained in:
James Hawkins 2006-07-31 11:15:52 -07:00 committed by Alexandre Julliard
parent 40556ae08f
commit 98d1486410
2 changed files with 7 additions and 4 deletions

View File

@ -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 );

View File

@ -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);
}
ok( action == INSTALLSTATE_LOCAL, "Expected INSTALLSTATE_LOCAL, got %d\n", action);
MsiCloseHandle( hpkg );
}