msi: Reset file attributes before removing a file.
This commit is contained in:
parent
726c045549
commit
bc13c7eb90
|
@ -1048,9 +1048,11 @@ UINT ACTION_RemoveFiles( MSIPACKAGE *package )
|
||||||
}
|
}
|
||||||
|
|
||||||
TRACE("removing %s\n", debugstr_w(file->File) );
|
TRACE("removing %s\n", debugstr_w(file->File) );
|
||||||
|
|
||||||
|
SetFileAttributesW( file->TargetPath, FILE_ATTRIBUTE_NORMAL );
|
||||||
if (!DeleteFileW( file->TargetPath ))
|
if (!DeleteFileW( file->TargetPath ))
|
||||||
{
|
{
|
||||||
WARN("failed to delete %s\n", debugstr_w(file->TargetPath));
|
WARN("failed to delete %s (%u)\n", debugstr_w(file->TargetPath), GetLastError());
|
||||||
}
|
}
|
||||||
/* FIXME: check persistence for each directory */
|
/* FIXME: check persistence for each directory */
|
||||||
else if (r && (dir = strdupW( file->TargetPath )))
|
else if (r && (dir = strdupW( file->TargetPath )))
|
||||||
|
|
Loading…
Reference in New Issue