I am trying to run a post-build batch file in .NET build that encrypts the output file, deletes the original, and then renames the encrypted version to the original name of the output file. i.e:.
Build A, then in post build:
- Encryption A-> B,
- DEL / FA,
- RENAME B A.
It seems that I can not delete the original output file after encryption, although it seems that there is a file lock by the installer project (or maybe the project itself?). I tried to force delete, but this is not only a read-only attribute, but also a complete lock. Is there any way around this?
John
source
share