tags:

views:

53

answers:

1

I have several directories and files as part of my installation. One of the folders I want to replace the contents always and the remaining follow the default Wix behavior. I noticed I can setup REINSTALLMODE to "amus", but does this apply to the entire package?

http://msdn.microsoft.com/en-us/library/aa371182(v=VS.85).aspx

http://wix.mindcapers.com/wiki/MSIExec

How do I use

<Property Id="REINSTALLMODE" Value="amus" />

on a single directory or component?

+2  A: 

Windows Installer doesn't support doing that.

Rob Mensching
Is there something I can do with removefolder on both? The folder may have been created by the user manually prior to having an installer and I want to replace the folder contents. The default file replacement rules don't seem to do that.
Chad Miller
Yes, you could use RemoveFile element to delete things from the folder. The RemoveFiles action comes before the InstallFiles action so the timing will work out. Note: this behavior would happen during repair, upgrade, and patching as well so be sure to test that as well.
Rob Mensching