Hi, I have defined a component to cleanup a generated (not part of msi) file on uninstall but leave intact on a major upgrade after reading this post http://stackoverflow.com/questions/488620/wix-major-upgrade
<Component Id="C_RemoveOnUninstall" Guid="XXX"> <Condition>REMOVE="ALL" AND NOT UPGRADINGPRODUCTCODE</Condition> <RemoveFile Id="DeleteGeneratedFile" Name="ProgramGeneratedFile" On="uninstall"/> </Component> With condition above, the file is left behind for both upgrade and uninstall. Without the condition, the file is deleted for both upgrade and uninstall. I have tried RemoveFile for each configuration of On="install/uninstall/both" but it does not seem to matter. Am I approaching this correctly? I know I could mitigate the issue by keeping generated files in a different location than installed files, but the requirement is still the same - preserve on upgrade, delete on uninstall. Thanks, Sameer ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users