In WiX 3.5 I've found new version of RegistrySearch: 
http://wix.sourceforge.net/manual-wix3/util_xsd_registrysearch.htm
Looks like it can manage with empty keys. Unfortunately it's not 
finished yet and I had problems to use it. Specifically I couldn't get 
it worked inside Product.


On 21.05.2010 17:59, Ilya wrote:
> Hi, Igor.
> I have seen many posts in Stackoverflow and in this mailing list with
> the same question as mine. Seems like there is no other way except
> creating custom action.
> I've viewed .msi with Orca. WiX does it's job: if I skip
> RegistrySearch/@Name attribute it fills it by null.
> It's a limitation of Windows Installer technology. There is no
> difference between "no key" and "default value of the key". "This means
> that there is no way to detect the presence of a key that has no default
> value: the result will be the same whether the key is missing or it is
> present but has no default value"
> (http://etutorials.org/Programming/Mastering+visual+studio+.net/Chapter+6.+Setup+and+Deployment/6.11+Launch+Conditions/)
> Thanks for the link. I'll try to create custom action using Votive.
>
> On 20.05.2010 22:58, Igor Paniushkin wrote:
>    
>> 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
>>
>>
>>
>>
>>
>>      
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> !DSPAM:3680870,4bf69377710861232418278!
>
>
>    


------------------------------------------------------------------------------

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to