Re: [WiX-users] Uninstall by Installer not removing the path created if that path is open on the system

2013-12-19 Thread Blair Murri
It’s like I wrote: Windows Installer will first try to move files it intends on either replacing or deleting. If that succeeds, then the directory can then be removed (but only if empty). Files that cannot be deleted (whether moved or not) are marked for deletion upon the next reboot if the

Re: [WiX-users] Uninstall by Installer not removing the path created if that path is open on the system

2013-12-19 Thread Suvrajyoti Panda
Thanks for the clarification, that helps. On 19-12-2013 14:55, Blair Murri wrote: It’s like I wrote: Windows Installer will first try to move files it intends on either replacing or deleting. If that succeeds, then the directory can then be removed (but only if empty). Files that cannot

Re: [WiX-users] Uninstall by Installer not removing the path created if that path is open on the system

2013-12-18 Thread David Connet
There is no way (that I know of) to delete a directory where something has an open handle on that. The only way is to make sure all programs have stopped and no open programs have that as their current directory. It's just like opening cmd.exe, cd'ing to a directory and trying to delete that

Re: [WiX-users] Uninstall by Installer not removing the path created if that path is open on the system

2013-12-18 Thread Hoover, Jacob
Does it exist after a reboot? I seem to remember windows installer being smart enough to schedule some cleanup after reboot (if it couldn't do them during uninstall). -Original Message- From: David Connet [mailto:d...@agilityrecordbook.com] Sent: Wednesday, December 18, 2013 8:25 AM

Re: [WiX-users] Uninstall by Installer not removing the path created if that path is open on the system

2013-12-18 Thread Suvrajyoti Panda
Hey David, Thanks for the confirmation.I just checked after reboot as well, but that does not happen. Anyways thanks again. Regards, SuvraJyoti On 18-12-2013 19:54, David Connet wrote: There is no way (that I know of) to delete a directory where something has an open handle on that. The only

Re: [WiX-users] Uninstall by Installer not removing the path created if that path is open on the system

2013-12-18 Thread Suvrajyoti Panda
Yes it does exist after reboot as well. On 18-12-2013 21:13, Hoover, Jacob wrote: Does it exist after a reboot? I seem to remember windows installer being smart enough to schedule some cleanup after reboot (if it couldn't do them during uninstall). -Original Message- From: David

Re: [WiX-users] Uninstall by Installer not removing the path created if that path is open on the system

2013-12-17 Thread Blair Murri
If a file being removed can’t be moved, then it will be marked for removal during reboot, and unfortunately the folder will then be left behind (because only file delete records are placed into the reboot sequence, not folders). After reboot there isn’t an installation left to run to cleanup

Re: [WiX-users] Uninstall by Installer not removing the path created if that path is open on the system

2013-12-17 Thread Suvrajyoti Panda
Hey Blair, The scenario you have mentioned in the first para of your response is exactly what is happening. So is there no way that we can handle the folder removal on uninstall even if that path is open, or this is a known issue? Regards, SuvraJyoti On 17-12-2013 14:14, Blair Murri wrote:

Re: [WiX-users] Uninstall by Installer not removing the path created if that path is open on the system

2013-12-17 Thread Suvrajyoti Panda
I just thought i needed to reiterate the issue for better clarity: Below is the directory structure in my source .wxs file: Directory Id='TARGETDIR' Name='SourceDir' Directory Id='EnergySolutionsConfig' Name=Energy Solution International Directory Id='PFWServiceFolder'

Re: [WiX-users] Uninstall by Installer not removing the path created if that path is open on the system

2013-12-17 Thread Phil Wilson
Why not just try a RemoveFolder and see if it solves the problem? It is the most likely solution, as suggested before. Phil Wilson On Tue, Dec 17, 2013 at 5:16 AM, Suvrajyoti Panda suvrajyo...@contata.co.in wrote: I just thought i needed to reiterate the issue for better clarity: Below is

Re: [WiX-users] Uninstall by Installer not removing the path created if that path is open on the system

2013-12-17 Thread Suvrajyoti Panda
Hi Phil, I modified the structure in my main WIX file as below: Directory Id='TARGETDIR' Name='SourceDir' Directory Id='EnergySolutionsConfig' Name=$(var.rootFolder) Component Id=parentOfAll Guid=22AD76A4-448E-41DB-85A0-A04E9774A466 KeyPath=yes RemoveFolder Id=

Re: [WiX-users] Uninstall by Installer not removing the path created if that path is open on the system

2013-12-16 Thread Wesley Manning
Did you use CreateFolder to create this directory? If so I think you need to use RemoveFolder to remove the folder. Not sure about that though. -Original Message- From: Suvrajyoti Panda [mailto:suvrajyo...@contata.co.in] Sent: December-16-13 12:37 AM To: General discussion about the

Re: [WiX-users] Uninstall by Installer not removing the path created if that path is open on the system

2013-12-16 Thread Suvrajyoti Panda
No Wesley, I have not used any create folder over here. Regards, SuvraJyoti On 16-12-2013 20:03, Wesley Manning wrote: Did you use CreateFolder to create this directory? If so I think you need to use RemoveFolder to remove the folder. Not sure about that though. -Original Message-

Re: [WiX-users] Uninstall by Installer not removing the path created if that path is open on the system

2013-12-15 Thread Suvrajyoti Panda
Hey Wesley, checked it on a reboot, that does not work. The structure is still there. Any others suggestions guys? Regards, SuvraJyoti On 13-12-2013 20:13, Wesley Manning wrote: It might be removed on a reboot. If you had folder open, then windows installer can't uninstall it. But I think

Re: [WiX-users] Uninstall by Installer not removing the path created if that path is open on the system

2013-12-13 Thread Wesley Manning
It might be removed on a reboot. If you had folder open, then windows installer can't uninstall it. But I think it marks it for removal. I know for sure files have this behaviour but I'm not sure about folders. -Original Message- From: Suvrajyoti Panda

[WiX-users] Uninstall by Installer not removing the path created if that path is open on the system

2013-12-12 Thread Suvrajyoti Panda
Hi All, I just saw this behaviour. My installer creates the following :C:\Energy Solutions International\PFWService\config, if this path is open and i run the uninstall from control panel, then the path remains(C:\Energy Solutions International\PFWService\config) although files under it is