Re: [WiX-users] Removing folders that don't exist at the compiling time

2009-10-07 Thread Pally Sandher
Works for me. Remember to add the Component to a Feature & it should be all good. Change the 'On="both"' to "install" or "uninstall" if that's what you'd prefer. Only problem is you can only delete files in directories which you know the names

Re: [WiX-users] Removing folders that don't exist at the compiling time

2009-10-07 Thread Rob Hamflett
If you know the format then of the name then you can do something like this: That text is a bit old so it might need a minor tweak, but that should do it. It's best to try and match known files as closely as possible so you don't end up deleting anything that's n

Re: [WiX-users] Removing Folders

2007-07-16 Thread Mailinglist
Hi Craig, Is there a way to call RemoveFolder, and have it remove (and empty) all sub-folders? My uninstall is using RemoveFile/RemoveFolder on a folder (which contains files created after installation), but since some of the files are stored in sub-directories, the uninstall leaves the folde

Re: [WiX-users] Removing Folders

2007-07-13 Thread Rob Hamflett
No, RemoveFolder only removes empty folders. You'd have to create a RemoveFolder entry for each subfolder, and then have RemoveFile entries for all the files they contain. You can use wildcards in RemoveFile though, so it's not as painful as it could be. If you have a lot of files/folders,