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 folder

orphaned.



Well, we have the same Problem, one Folder is created with Setup, a random 
number of subfolders with random names (exactly assembly-full-names) are 
createt with files during the program. On deinstall, we need to delete those 
folders, since otherwise the main  directory isn't deleted either.



I use a combination like this for the problem:


<Property Id='COMMANDEXE' Admin='no' Hidden='no' Secure='no'>
      <DirectorySearch Id='CmdExe_DirSearch' Depth='3' 
Path='c:\windows\system32'>
            <FileSearch Id='CmdExe_FileSearch' Name='cmd.exe'/>
      </DirectorySearch>

</Property>


<InstallExecuteSequence>
      <Custom Action='RemoveALC' After ='StopServices'>
            Installed
      </Custom>
</InstallExecuteSequence>
<CustomAction Id='RemoveALC' Execute='deferred'  Property='COMMANDEXE' 
ExeCommand=' /C rmdir /S /Q "[EWS.AssemblyLoaderCache]"' Return='asyncNoWait' />


Hope this is useful for you, maybe we should request this feature for next 
stable WiX?

Oliver
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to