HighTechTalks DotNet Forums  

Can Launch Condition detect a registry key without a value?

Dotnet Framework (Setup) microsoft.public.dotnet.framework.setup


Discuss Can Launch Condition detect a registry key without a value? in the Dotnet Framework (Setup) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Brian Cryer
 
Posts: n/a

Default Can Launch Condition detect a registry key without a value? - 06-24-2005 , 05:45 AM






Can I use a Launch Condition to detect the presence of a key without a
value? and if so how?

Just to put this into context, I hope to have a launch condition to detect
whether the Adobe SVG viewer has been installed. I know that it has if the
registry key "HKLM\SOFTWARE\Adobe\Adobe SVG Viewer" exists. The trouble is
that there are no values under this key, none at all. There is a sub-key
"HKLM\SOFTWARE\Adobe\Adobe SVG Viewer\3.02" which contains information
specific to the current version, but I would rather not test explicitly for
the presence of version 3.02 because this is a specific version and won't
work if someone has a later release. So, can I check for just the key
"HKLM\SOFTWARE\Adobe\Adobe SVG Viewer"? I've tried various things but
haven't been able to get it to do what I want.

Any help would be appreciated. Thanks.

Brian.



Reply With Quote
  #2  
Old   
Brian Cryer
 
Posts: n/a

Default Re: Can Launch Condition detect a registry key without a value? - 06-24-2005 , 06:49 AM






Just found this on the page
http://msdn2.microsoft.com/library/4awx1f1d(en-us,vs.80).aspx:

A registry search cannot verify that a registry key exists unless the
registry key contains a non-null value.

That answers my question. I suppose I'll have to find a different way
forward.

Brian.



"Brian Cryer" <brianc (AT) 127 (DOT) 0.0.1.activesol.co.uk> wrote

Quote:
Can I use a Launch Condition to detect the presence of a key without a
value? and if so how?

Just to put this into context, I hope to have a launch condition to detect
whether the Adobe SVG viewer has been installed. I know that it has if
the registry key "HKLM\SOFTWARE\Adobe\Adobe SVG Viewer" exists. The
trouble is that there are no values under this key, none at all. There is
a sub-key "HKLM\SOFTWARE\Adobe\Adobe SVG Viewer\3.02" which contains
information specific to the current version, but I would rather not test
explicitly for the presence of version 3.02 because this is a specific
version and won't work if someone has a later release. So, can I check for
just the key "HKLM\SOFTWARE\Adobe\Adobe SVG Viewer"? I've tried various
things but haven't been able to get it to do what I want.

Any help would be appreciated. Thanks.

Brian.




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.