How to make WiX leave files after uninstall?

glenneroo picture glenneroo · Apr 13, 2010 · Viewed 14.8k times · Source

Is there a way to NOT delete files after an uninstall?

Answer

Simeon Pilgrim picture Simeon Pilgrim · Apr 13, 2010

Set the Component value Permanent="yes" like so:

<Component Id="LicenseDoc" Guid="*" Permanent="yes">
    <File Id ="License.rtf" Source="$(var.SolutionDir)Installer\License.rtf" />
</Component>