Can someone please help with the script below. The ExistKey check always says not installed and then registers the .dll again ? Below is the Code and below that the Regkey dumped to text. Or is there a better simpler way to check for a registered .dll. The users do not have admin rights.

thanks,
Mark

code:
Select
Case @PRODUCTTYPE = "Windows XP Professional"
$ReturnCode = ExistKey("HKEY_CLASSES_ROOT\CLSID\{04F47D98-3495-4634-B195-AAEBB9DB5DD2}\InprocServer32=\\gtb1\netlogon\tqcrunas.dll")
If $ReturnCode = 0
? "XP TQCRunAs Installed...."
Else
? "XP TQCRunAs Not Installed...."
Shell "TqcRunas -f \\GTB1\netlogon\registerdll.tqc "

EndIf
EndSelect

code:
 Key Name:          HKEY_CLASSES_ROOT\CLSID\{04F47D98-3495-4634-B195-AAEBB9DB5DD2}\InprocServer32
Class Name: <NO CLASS>
Last Write Time: 9/12/2003 - 1:39 PM
Value 0
Name: <NO NAME>
Type: REG_SZ
Data: \\gtb1\netlogon\tqcrunas.dll

Value 1
Name: ThreadingModel
Type: REG_SZ
Data: Apartment