I’m been wondering during uninstall, how to control the sequence of removefiles and Windows delete registry entry through WIX.
One of my program's registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\GUID\Transforms
is deleted before removefiles. If then removefiles failed, the uninstall process abort. But the registry is already deleted, that would be a disaster。