Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make WiX leave files after uninstall?

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

like image 789
glenneroo Avatar asked Apr 13 '10 15:04

glenneroo


1 Answers

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> 

Remarks:

  • This definition has to be done in the installed MSI as well as the upgrading MSI. If the base MSI did not have a component Id this file will be deleted regardless of the Permanent="yes"
like image 155
Simeon Pilgrim Avatar answered Sep 20 '22 23:09

Simeon Pilgrim