When is something not like something though it looks like something!?!

(imported topic written by everestt23)


Going mad here folks.

I have a parameter

parameter “PREV” = “{value “DisplayVersion” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall{2DCB12A8-E710-4C7C-B363-897AFA4467B2}}” of registry as string}”

I then try to evaluate it and take an action (simplified for testing)

if {parameter “PREV”} = “1.0.0” then

copy C:\config.txt C:\Temp\config.txt


NOTHING HAPPENS … but the client log shows

Command succeeded parameter “PREV” = “1.0.0” (fixlet 21529)

I have tried not casting the parameter, adding a cast to the parameter in the if statement (if {parameter “PREV” as string} …) but still nothing. Most confused!

Thanks in advance,


(imported comment written by arnaud91)

Hi everestt,

There are 2 little mistakes in your code:

  1. BigFix action script uses if/else/endif statement. “then” is not expected.

  2. To evaluate the value of the parameter, you have to put entire statement between curly brakets, not only the parameter name, and the correct statement is {parameter “name_of_parameter” of action = “any_value”}

So you could try following code:

parameter "PREV" = "{value "DisplayVersion" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{2DCB12A8-E710-4C7C-B363-897AFA4467B2}}" of registry as string}"
if {parameter "PREV" of action = "1.0.0"}
copy "C:\config.txt" "C:\Temp\config.txt"


(imported comment written by everestt23)

Thanks Arnaud, the addition of the “then” was my error, I should have cut ‘n’ paste, but I was unaware of the other requirement. Many thanks!