I am facing a scenario where I need to delete a whitelisted folder and its contents (contains vbs and bat files) at the end of a component installation.
The process which is trying to delete this folder is "SYSTEM" process and for security reasons I cannot configure this process as an updater.
I can't use an user or a file as an updater.
I tried using exclude write-protection (sadmin wp -e C:\sample) for this folder and tried to delete, but this is failing.
Is there any other method using which I can delete a whitelisted folders and files ?