View Single Post
  #2  
Old 08-11-2005, 08:16 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,027
Use this in a Run Script step (VBScript):

Function RegValueExists(key)

Set objSh = CreateObject("WScript.Shell")

On Error Resume Next
objSh.RegRead(key)

RegValueExists = (Err = 0)

End Function

Builder.LogMessage RegValueExists("HKCU\Control Panel\Opened")

or put the function in project/global scripts and reference in a step field like

[RegValueExists("HKCU\Control Panel\Opened")]
Reply With Quote