My issue was originally that I specified them to be permanent and I wanted the user to specify whether to remove the folders. Also I wanted to verify that my other msi installations (other programs) weren't installed prior to removing the folders. So it had to satisfy both the key requirement and what the user wanted. The logic might have been slightly off but I found a different way to do it anyways (custom actions).
-----Original Message----- From: Sebastian Brand [mailto:[EMAIL PROTECTED] Sent: Friday, July 13, 2007 6:53 AM To: Pierson Lee (Volt) Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Annoying RemoveFolders problem > I am attempting to remove 2 folders that I created on install ONLY > if all 3 registry keys I'm checking for do not exist. > > <Condition>(NOT (KEY1_EXISTS="1") OR NOT (KEY2_EXISTS="1") OR NOT > (KEY3_EXISTS="1")) AND Installed</Condition> > Isn't there a logical error? ... (not key1exists) or (not key2exists) or (not key3exists) ... == if any of the the keys do not exists it returns true. Shouldn't this be AND instead of OR? Also, if those 2 folders get created during installation, does the Windows Installer not remove them on uninstallation automatically? And finally, RemoveFolder can only remove empty folders as far as I know. Best regards, Sebastian Brand Instyler Software - http://www.instyler.com ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users