Yes, what it is getting hung up on is enumerating a hundred thousand files
one by one and adding them up to a giant string that is passed on to the
MSI engine.

I looked at the RemoveFolderEx C++ implementation and it confirmed all my
suspicions, so I went ahead and took it out and created my own managed
custom action instead, which does the whole thing in one line:
Directory.Delete(path, true) :-)

Of course I added proper error handling and session return codes etc. but
now it's super fast and doing exactly what I needed it to do. I'll probably
do a blog post on it, I'll update this thread with the link when it's up.

// Sascha


On Thu, May 8, 2014 at 12:06 PM, Nick Ramirez <nickra...@hotmail.com> wrote:

> Is it getting hung up on something? When you uninstall with logging, does
> the
> log show anything happening that takes a long time around where it calls
> RemoveFiles?
>
>
>
> --
> View this message in context:
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/RemoveFolderEx-really-slow-on-large-folders-tp7594451p7594615.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Is your legacy SCM system holding you back? Join Perforce May 7 to find
> out:
> • 3 signs your SCM is hindering your productivity
> • Requirements for releasing software faster
> • Expert tips and advice for migrating your SCM now
> http://p.sf.net/sfu/perforce
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to