Basically you can use registry search for this, in the example below I am searching for a directory in the registry to exist. To Delete just Action="remove".
I don't know if registry search provides wildcard. <Property Id="INSTALLDIR" Value='C:\Nothing'> <RegistrySearch Id='ToSearch' Type='raw' Root='HKLM' Key='Software\[RegCompanyPart]\MyPoductDir ' Name='MyDirToSearch' /> </Property> <Registry Id="ToSearch" Action="remove" /> This should work for, but I don't know how to use wildcards or something in registry search. Martin Lierschof -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Heitor Tome Gesendet: Donnerstag, 19. Juni 2008 19:55 An: wix-users@lists.sourceforge.net Betreff: [WiX-users] Removing registry keys via loop/enumeration... Hi there, I have an installer that needs to remove registry keys before installing another registry key. Basically, I need to enumerate all subkeys of a specific key, find out if a specific word is in the key name and if so remove the registry key. Could anyone help me find out what is the best way to accomplish this with WiX? I am using the stable version. I was thinking about a C++ DLL to accomplish this task but wanted to find out first if there is already something in WiX to help me doing this. Thanks! ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users