I based my code on this: 
http://stackoverflow.com/questions/3287626/wix-installer-remove-files-on-uninstall-but-not-on-upgrade

I saw no complaints about the suggested answer so I assumed it worked. But when 
I adapted to my code it does nothing.
In product.wxs:

<InstallExecuteSequence>
      <RemoveExistingProducts After='InstallFinalize'>1</RemoveExistingProducts>
</InstallExecuteSequence>

And in my main installation directory I added:

<Component Id="RemoveFilesComponent" 
Guid="A749202E-E09A-4DED-B205-337B0E7FB736">
        <RemoveFile Id="R1" On="both" Name="filexyz.exe"/>
</Component>

The installer runs and completes without error or warnings, but filexyz.exe is 
not removed. As an experiment I tried "*.*", but that didn't remove anything 
neither.
The msi.log shows RemoveExistingProducts being invoked, but it doesn't remove 
anything.

What am I missing?
------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to