How do you conditionally remove files during uninstall?
问题 I have this WiX fragment: <Component Id="AppData" Guid="{30967EFB-4B86-4EBB-8486-5271D051082E}"> <Condition>NOT KEEPAPPDATA</Condition> <RemoveFile Id="PurgeAppData" Name="*.*" On="uninstall" /> <RemoveFolder Id="RemoveAppDataFolder" On="uninstall" /> </Component> in the appropriate <Directory> element for the directory under application data that the program stores data. However both msiexec /xpath-to-msi.msi KEEPAPPDATA="TRUE" and msiexec /xpath-to-msi.msi remove the folder, so the