[wix-users] Delete logs folder at uninstall

Racheli Ganon r05458410430 at gmail.com
Sat Dec 18 16:46:05 PST 2021


Hi,
I have a service that logs to a newly created folder,
on the onStart() and onStop() of the service.

In the uninstall scenario  I  want to delete the logs folder but the
uninstall fails,
using verbose logging I'm getting this error:
*System.IO.IOException: The process cannot access the file 'Service.log'
because it is being used by another process.*

Any suggestions?
Any help will be appreciated,
Thanks!!


More information about the wix-users mailing list