View Full Version : Suppressing prompt for license service/file

04-15-2008, 09:43 AM
lc_checkout causes a dialog to popup if flex is unable to find a license service or license file. This dialog directs the user to browse to their file or service.

I understand that this can be suppressed programmatically by calling lc_set_attr/LM_A_LICENSE_DEFAULT and specifying a license file directory (files inside can be invalid) or by setting the env. var LM_LICENSE_FILE to point to a similar location.

Is there any more 'permanent' mechanism to suppress this dialog? Our flex-enabled app is designed to be a Vista service, and any UI from a service under Vista is a strict 'no-no'.

- Paul

04-15-2008, 09:48 AM
You can use lc_set_attr to unset LM_A_PROMPT_FOR_FILE.

(As an aside, you might also do the same with LM_A_PERROR_MSGBOX to prevent licensing errors from being displayed in a message box.)

04-15-2008, 09:51 AM
Fantastic, thanks again