[wix-users] Delete logs folder at uninstall
bevan.weiss at gmail.com
bevan.weiss at gmail.com
Sat Dec 18 17:22:18 PST 2021
Are you using the RemoveFile element?
https://wixtoolset.org/documentation/manual/v3/xsd/wix/removefile.html
https://stackoverflow.com/questions/195919/removing-files-when-uninstalling-
wix
You'll need to provide more information in regards to how you're trying to
do the deletion of the file/folder.
I suspect that the service itself is still running at the time.
I expect that RemoveFile / RemoveFolder are by default scheduled in the
right order to be after the stopping / removal of services.
But if you're using these elements already, then you may want to confirm
this for yourself.
Regards,
Bevan
-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of
Racheli Ganon via wix-users
Sent: Sunday, 19 December 2021 11:46 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Racheli Ganon <r05458410430 at gmail.com>
Subject: [wix-users] Delete logs folder at uninstall
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!!
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/
More information about the wix-users
mailing list