Commit 64a9e0f7 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: msidbFileAttributesVital has no effect on the installation of files.

parent 4e467ad7
...@@ -750,11 +750,6 @@ static UINT copy_install_file(MSIFILE *file) ...@@ -750,11 +750,6 @@ static UINT copy_install_file(MSIFILE *file)
gle = copy_file(file); gle = copy_file(file);
TRACE("Overwriting existing file: %d\n", gle); TRACE("Overwriting existing file: %d\n", gle);
} }
else if (!(file->Attributes & msidbFileAttributesVital))
{
TRACE("Ignoring error for nonvital\n");
gle = ERROR_SUCCESS;
}
return gle; return gle;
} }
......
...@@ -4411,22 +4411,22 @@ static void test_sourcefolder(void) ...@@ -4411,22 +4411,22 @@ static void test_sourcefolder(void)
MsiSetInternalUI(INSTALLUILEVEL_NONE, NULL); MsiSetInternalUI(INSTALLUILEVEL_NONE, NULL);
r = MsiInstallProductA(msifile, NULL); r = MsiInstallProductA(msifile, NULL);
ok(r == ERROR_INSTALL_FAILURE,
"Expected ERROR_INSTALL_FAILURE, got %u\n", r);
ok(!delete_pf("msitest\\augustus", TRUE), "File installed\n"); ok(!delete_pf("msitest\\augustus", TRUE), "File installed\n");
todo_wine todo_wine
{ {
ok(r == ERROR_INSTALL_FAILURE,
"Expected ERROR_INSTALL_FAILURE, got %u\n", r);
ok(!delete_pf("msitest", FALSE), "File installed\n"); ok(!delete_pf("msitest", FALSE), "File installed\n");
} }
RemoveDirectoryA("msitest"); RemoveDirectoryA("msitest");
r = MsiInstallProductA(msifile, NULL); r = MsiInstallProductA(msifile, NULL);
ok(r == ERROR_INSTALL_FAILURE,
"Expected ERROR_INSTALL_FAILURE, got %u\n", r);
ok(!delete_pf("msitest\\augustus", TRUE), "File installed\n"); ok(!delete_pf("msitest\\augustus", TRUE), "File installed\n");
todo_wine todo_wine
{ {
ok(r == ERROR_INSTALL_FAILURE,
"Expected ERROR_INSTALL_FAILURE, got %u\n", r);
ok(!delete_pf("msitest", FALSE), "File installed\n"); ok(!delete_pf("msitest", FALSE), "File installed\n");
} }
......
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