Commit 98d14864 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

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

parent 40556ae0
...@@ -1323,6 +1323,12 @@ static UINT load_file(MSIRECORD *row, LPVOID param) ...@@ -1323,6 +1323,12 @@ static UINT load_file(MSIRECORD *row, LPVOID param)
file->state = msifs_invalid; 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)); TRACE("File Loaded (%s)\n",debugstr_w(file->File));
list_add_tail( &package->files, &file->entry ); list_add_tail( &package->files, &file->entry );
......
...@@ -1744,10 +1744,7 @@ static void test_states(void) ...@@ -1744,10 +1744,7 @@ static void test_states(void)
r = MsiGetComponentState(hpkg, "eta", &state, &action); r = MsiGetComponentState(hpkg, "eta", &state, &action);
ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r ); ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r );
ok( state == INSTALLSTATE_ABSENT, "Expected INSTALLSTATE_ABSENT, got %d\n", state); 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 ); MsiCloseHandle( hpkg );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment