Okay, maybe I am losing it but I am using CFREGISTRY to
determine if a branch exists and if not build the branch
with a set of key / value pairs.

I am using CFTRY/CFCATCH to read the branch. If an error
is returned such as "unable to read...."

Then I would build the branch using the SET action.
However using the REQUIRED attributes of CFREGISTRY
it indicates in the CF5 book, that if it does not exists, it will
be created.

This is not the case. CFREGISTRY is turned on.
I can create the branch manually and read it with CF but
not create it if it does not exists. This is an NT environment
by the way.

What is the proper syntax to create a branch and entry if
it does not exist?

I have tried this:

<cfregistry action="SET" branch="HKEY_LOCAL_MACHINE\Software\TESTING"
Entry="TEST">
<cfregistry action="SET" branch="HKEY_LOCAL_MACHINE\Software\TESTING"
entry="ITEMA" type="String" value="TESTITEM">

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to