Hi,
In order to delete a file at the end of the installation, you can go in the "Custom Actions" page and add a "Launch file" custom action after the "Add Resources" action group configured as in the example below:
- File to launch: cmd.exe
Command line: /c del [#B.DLL]
Select only the options below:
When the system is being modified (deferred)
Run under the LocalSystem account with full privileges (no impersonation)
Wait for custom action to finish before proceeding
Fail installation if custom action returns an error
Install
Let me know if this helped, otherwise give me more details about your scenario.
Best regards,
Eusebiu