Skip to content

Commit

Permalink
Allow the underlying FileInstaller to delete the file if needed. (#5087)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimarobert authored Apr 12, 2022
1 parent 5888deb commit dd55f7f
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,16 @@ protected override bool InstallFile(InstallFile file)
bool bSuccess = true;
if (file.Action == "UnRegister")
{
this.DeleteFile(file);
var prevDeleteFiles = this.DeleteFiles;
try
{
this.DeleteFiles = true;
this.DeleteFile(file);
}
finally
{
this.DeleteFiles = prevDeleteFiles;
}
}
else
{
Expand Down

0 comments on commit dd55f7f

Please sign in to comment.