CPack/Wix cannot delete directory of previous run
Hi,
When trying to run the package target in Visual Studio 2019 a second time, it always fails with:
7>CPack: Create package using WIX
7>EXEC : CPack error : Problem removing toplevel directory: <...>/_CPack_Packages/win64/WIX
7>EXEC : CPack error : Error when generating package: <...>
The problem is also described here: https://github.com/wixtoolset/issues/issues/6512
To run the package target again, I manually have to delete the .msi file (with an acknoledge dialog).