Helo,

In order to test the presence of an application on a workstation, I use the readvalue command.
The problem is that the error returns an abnormal value equel to "2", eventhough the registry key exists on the workstation.

How is that possible ?

 Code:
IF $OSVER64 = 1
        READVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Firefox 60.3.0 ESR (x64 fr)","DisplayName")
        IF @ERROR = 0
	   EXIT
        ELSE
        ENDIF
      ELSE
        READVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Firefox 60.3.0 ESR (x86 fr)","DisplayName")
        IF @ERROR = 0
	   EXIT
        ELSE
        ENDIF
	READVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Firefox 60.3.0 ESR (x86 fr)","DisplayName")
        IF @ERROR = 0
	   EXIT
        ELSE
        ENDIF
      ENDIF


Thanks for the answer.