View Single Post
  #3  
Old 08-12-2005, 11:48 AM
Ken Ken is online now
Registered User
 
Join Date: 05-08-2003
Posts: 20
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
Reply With Quote