Precedence
If the variable is LM_LICENSE_FILE or VENDOR_LICENSE_FILE, then both the environment and the registry are used, with the environment used first, and the registry appended to the path.
If it’s a different variable, then if the environment is set, only that is used, otherwise the registry is used. That is, the registry is only used if the environment is not set.