[WiX-users] RegistrySearch with empty registrykeys

2007-10-18 Thread Nitin Chaudhari
Hi,

 

I want to check if a Key exists, it may or may not have any values or
subkeys in it, so I tried the following

 

RegistrySearch Id=ExcelExistsRegistry Type=raw Root=HKLM
Key=SOFTWARE\Microsoft\Office\Excel\

 

I am including the Name attribute since I don't want to check for anything..
I just want to confirm that the path SOFTWARE\Microsoft\Office\Excel\
exists, how can I do that?

 

I tried Name=(Default) it does not work

 

Thanks,

Nitin.

 


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] RegistrySearch with empty registrykeys

2007-10-18 Thread Sebastian Brand
The MSI Help for the RegLocator table states:
Note that it is not possible to use the RegLocator table to check  
only for the presence of the key. However, you can search for the  
default value of a key and retrieve its value if it is not empty.

- http://msdn2.microsoft.com/en-us/library/Aa371171.aspx


Best regards,
Sebastian Brand

Instyler Software - http://www.instyler.com


On Oct 18, 2007, at 9:22 AM, Nitin Chaudhari wrote:

 Hi,



 I want to check if a Key exists, it may or may not have any values  
 or subkeys in it, so I tried the following



 RegistrySearch Id=ExcelExistsRegistry Type=raw Root=HKLM  
 Key=SOFTWARE\Microsoft\Office\Excel\



 I am including the Name attribute since I don’t want to check for  
 anything.. I just want to confirm that the path SOFTWARE\Microsoft 
 \Office\Excel\ exists, how can I do that?



 I tried Name=”(Default)” it does not work



 Thanks,

 Nitin.



 DISCLAIMER == This e-mail may contain privileged and  
 confidential information which is the property of Persistent  
 Systems Ltd. It is intended only for the use of the individual or  
 entity to which it is addressed. If you are not the intended  
 recipient, you are not authorized to read, retain, copy, print,  
 distribute or use this message. If you have received this  
 communication in error, please notify the sender and delete all  
 copies of this message. Persistent Systems Ltd. does not accept any  
 liability for virus infected mails.

 -- 
 ---
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a  
 browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/ 
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users