It seems the only error check I can do after Create File Association is to check if the value of %_SB_ERRORCODE% is non-zero (OK) or zero (not OK)

When it is zero, however, I would like to get more details about why the Create File Association is failing (Insufficient rights? File type already registered? Something else?)

In the Setup Builder documentation there are some references to the Windows API GetLastError, but not for Create File Association and also no details about how to obtain the getlasterror value

How can I get more detailed error information when the Create File Association returns 0 ?