Hello,
When creating a new environment variable, you can see that it is added/removed on a component install/uninstall. Basically, this means that it is created at install time.
With that being said, it is not possible to use it with your UserLicenseAgreement dialog.
Best regards,
Catalin