msi: Don't fail if we can't remove an existing install file.

This commit is contained in:
James Hawkins 2006-11-27 18:18:51 -08:00 committed by Alexandre Julliard
parent 13892639b4
commit 7125d3073d
1 changed files with 6 additions and 2 deletions

View File

@ -355,8 +355,12 @@ static INT_PTR cabinet_notify(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pfdin)
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;
}