Trouble with action script

(imported topic written by SystemAdmin)

I’m trying to create a registry value that is based on what version of flash an endpoint has. I think i’m close but i’ve run into some trouble and was hoping someone could tell me what i’m missing.

what i’ve done so far, successfully.

q: version of file (value “” of key “HKEY_CLASSES_ROOT\CLSID{D27CDB6E-AE6D-11cf-96B8-444553540000}\InprocServer32” of registry as string as lowercase)

A: 10.2.153.1

q: if (exists file (value “” of key “HKEY_CLASSES_ROOT\CLSID{D27CDB6E-AE6D-11cf-96B8-444553540000}\InprocServer32” of registry as string as lowercase) whose (version of it>=“10.2.153.1”)) then “updated” else “outdated”

A: updated

I used the “then/else” just to see it completed in qna

Where i run into trouble is when i try to set the registry key.

if 
{( exists file (value 
"" of key 
"HKEY_CLASSES_ROOT\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}\InprocServer32" of registry as string as lowercase) whose (version of it>= 
"10.2.153.1" as version  ) )
} Regset 
"[HKEY_LOCAL_MACHINE\Software\BigFix\JuniperHC]" 
"GEN_FLASH_VERSION"=dword:00000001 

else Regset 
"[HKEY_LOCAL_MACHINE\Software\BigFix\JuniperHC]" 
"GEN_FLASH_VERSION"=dword:00000000 endif

The client log on the action tab of the debugger shows this:

STATUS: Running action... Command failed (Relevance substitution failed) 

if 
{( exists file (value 
"" of key 
"HKEY_CLASSES_ROOT\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}\InprocServer32" of registry as string as lowercase) whose (version of it>= 
"10.2.153.1" as version  ) )
}   --- Result --- Evaluation failed!

I’ve set several other keys i’m working on in a similar fashion.

for example:

if 
{( exists file 
"C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Acrobat.exe"  whose (version of it>= 
"9.4.4" as version  ) ) or ( exists file 
"C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe"  whose (version of it>= 
"10.1.0" as version  ) )
} Regset 
"[HKEY_LOCAL_MACHINE\Software\BigFix\JuniperHC]" 
"GEN_ADOBE"=dword:00000001 

else Regset 
"[HKEY_LOCAL_MACHINE\Software\BigFix\JuniperHC]" 
"GEN_ADOBE"=dword:00000000 endif

This one works fine.

Any ideas?

thanks,

Baraq

(imported comment written by SystemAdmin)

OK, think i found my problem. I need an extra } as an escape.

{D27CDB6E-AE6D-11cf-96B8-444553540000}}

now the action tab looks good:)

STATUS: Running action...
 
--- Result ---
Evaluation completed successfully!