The folder hierarchy is just a example. My application has nothing to do with user accounts.
Thanks for the suggestion of using wix-contrib. At first I read the code and thought it was easy for me to translate it to a C# version CA. Anyway, I add version.lib to the projects, and get wix-contrib build successfuly. However, when I use it in my project, it seems does not work (still due to the version issue). In my code, I have xmlns:contri="http://wixtoolset.org/wixcontrib/2008" And for the folders I want to delete completely, <Directory Id="dirA51B01A2E638149A2E0381A7B1B1FA0A" Name="Foo"> <Component Id="cmpC736EC12CD6A4FF8C43A5AB7005B0C22" Guid="{B6E6C8AF-EC5D-4A0C-B718-0B6823632C92}" KeyPath="yes"> <CreateFolder /> <contri:RemoveFolderEx On="uninstall" /> </Component> The log is: Action 11:29:04: RemoveFoldersEx. Action start 11:29:04: RemoveFoldersEx. RemoveFoldersEx: Error 0x80070715: Failed to get file version of custom action dll CustomAction RemoveFoldersEx returned actual error code 1603 but will be translated to success due to continue marking Action ended 11:29:04: RemoveFoldersEx. Return value 1. Any idea about the failure? Thanks, -Elfe -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/The-DirProperty-in-RemoveFile-table-must-be-a-property-name-in-Directory-table-tp5317922p5328217.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users