When I tried this I get the following error. Any ideas on what I am doing wrong?
-Ken
Error expanding macros in property condexpr: <Error at Line 1, Column 1 (Type mismatch: 'RegValueExists')>
The code I am using for the conditional execution is --
[RegValueExists("HKEY_LOCAL_MACHINE\SOFTWARE\Kinook Software\Visual Build Professional\Last Successful Build\%Project% %Unit%")]
The code from my global script is ----
Function RegValueExists(key)
Set objSh = CreateObject("WScript.Shell")
On Error Resume Next
objSh.RegRead(key)
RegValueExists = (Err = 0)
End Function
|