msi: Don't fail if we can't remove an existing install file.
diff --git a/dlls/msi/files.c b/dlls/msi/files.c
index 00f2a01..cf7baf4 100644
--- a/dlls/msi/files.c
+++ b/dlls/msi/files.c
@@ -355,8 +355,12 @@
NULL, CREATE_ALWAYS, attrs, NULL );
if ( handle == INVALID_HANDLE_VALUE )
{
- ERR("failed to create %s (error %d)\n",
- debugstr_w( f->TargetPath ), GetLastError() );
+ if ( GetFileAttributesW( f->TargetPath ) != INVALID_FILE_ATTRIBUTES )
+ f->state = msifs_installed;
+ else
+ ERR("failed to create %s (error %d)\n",
+ debugstr_w( f->TargetPath ), GetLastError() );
+
return 0;
}