all groups > dotnet setup > june 2005 >
You're in the

dotnet setup

group:

Can Launch Condition detect a registry key without a value?


Re: Can Launch Condition detect a registry key without a value? Brian Cryer
6/24/2005 12:00:00 AM
dotnet setup:
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.



[quoted text, click to view]

Can Launch Condition detect a registry key without a value? Brian Cryer
6/24/2005 11:45:12 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.

AddThis Social Bookmark Button