Hm... interesting question. I never tried it myself, but after some googling I found next answer: http://stackoverflow.com/questions/1327203/in-wix-how-do-i-test-for-the-existence-of-a-registry-key-not-value-for-oracle-o/ Most probably is the best way to do that is to write custom action. You can also modify tables with Orca (or automate it) after every build to set it Name to null, as it described on msdn.
Igor -----Original Message----- From: Илья Сербис [mailto:iser...@shtrih-m.ru] Sent: Thursday, May 20, 2010 5:46 PM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] How to check whether the empty key exists in theregistry Does anyone know how to check whether the key exists in the registry. The key doesn't contain any named values. It's empty. I've been trying to use RegistrySearch. According to http://msdn.microsoft.com/en-us/library/aa371171(VS.85).aspx if value of Name is null "then the value from the key's unnamed or default value, if any, is retrieved". But I can't set empty value of the Name attribute according to the WiX schema limitations: error CNDL0006: The RegistrySearch/@Name attribute's value cannot be an empty string. If you want the value to be null or empty, simply remove the entire attribute. When I remove Name attribute (as I suggested) WiX doesn't locates the key. I'd appreciate for any ideas. Ilya Serbis ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users </pre> <BR style="font-size:4px;"> <a href = "http://www.sdl.com"><img src="http://www.sdl.com/images/email logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a> <BR> <font face="arial" size="2" "><a href = "http://www.sdl.com" style="color:005740; font-weight: bold">www.sdl.com</a> <BR> <BR> <font face="arial" size="1" color="#736F6E"> <b>SDL PLC confidential, all rights reserved.</b> If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.<BR> SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207.<BR> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. </font> ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users