Hi, I use a trick now and it works, but it's not the fine way, I think.
In <util:RemoveFolderEx On="uninstall" Property="AppDataCommonFolder"/> I have to place my property containing the full path to my folder. I have an action where I set this property. <CustomAction Id="setAppDataCommonFolder" Property=" AppDataCommonFolder" Value="[CommonAppDataFolder]Company\Product\Common\" Execute="immediate" /> Now I have a second action where I clean this property, or set a stupid value. ;-) <CustomAction Id="cleanAppDataCommonFolder" Property=" AppDataCommonFolder" Value="Don't remove AppDataCommonFolder" Execute=" immediate" /> In the ExecuteSequence I launch the cleanAppDataCommonFolder based on a condition. The property REMOVECOMMONFILES will be set by the custom dialog with 1 if the checkbox is set. <Custom Action="cleanAppDataCommonFolder" Before=" WixRemoveFoldersEx">NOT REMOVECOMMONFILES="1"</Custom> So the property AppDataCommonFolder will only have a valid value if the checkbox in the dialog is checked. Cheers, Thomas ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users