r00t
Posts: 28
Joined: Thu Jan 26, 2012 7:03 pm

localize the [Yes] and [No] button in a “Display message box

is it possible to localize the [Yes] and [No] button in a “Display message box” predefined custom action ?
Yes -> Continue to the next Dialog.
No -> Just exist the current message box and stay on the same dialog.
is that possible ?

Thanks !
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: localize the [Yes] and [No] button in a “Display message

Hi,

The possibility of localizing (translate) the buttons of the "Display message box" custom action is already on our TODO list and it will be available in a future version of Advanced Installer.

If you want to continue/stay on the same dialog based on the button that the user pressed on the message box, you can use the value returned by the "Display message box" custom action as a condition for the "Display a specific dialog" published event on the [Next] button of a dialog (i.e. BTN_PRESSED = "IDYES").

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
r00t
Posts: 28
Joined: Thu Jan 26, 2012 7:03 pm

Re: localize the [Yes] and [No] button in a “Display message

The scenario is this:
when the user checks a feature from the ConfigureDlg, the installer should ask two times ( double messagebox confirmation) before continue to the next dialog.
I used two custom actions (Display message box), and from the Published Events, i put a condition on the second message box (BTN_PRESSED = "IDYES").
Now, this works fine if the user clicks on YES, but if the user choosed 'NO', i still can go to the next dialog. when i tried to condition this event too (Display a specific dialog) and add the condition BTN_PRESSED = "IDYES", my condition should be ( (&M_Feauture1= 3)AND NOT (!&M_Feauture1 = 3) ) AND BTN_PRESSED = "IDYES" , but i can't edit it, my condition can be just (&M_Feauture1= 3)AND NOT (!&M_Feauture1 = 3) )
tl;dr : i can't edit the condition and add BTN_PRESSED = "IDYES"
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: localize the [Yes] and [No] button in a “Display message

Hi,

I'm not sure why you cannot edit that condition, but you should be able to do it. Can you send me your AIP project file, so I can take a look of it?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
r00t
Posts: 28
Joined: Thu Jan 26, 2012 7:03 pm

Re: localize the [Yes] and [No] button in a “Display message

Eusebiu wrote:Hi,

I'm not sure why you cannot edit that condition, but you should be able to do it. Can you send me your AIP project file, so I can take a look of it?

Best regards,
Eusebiu
done.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: localize the [Yes] and [No] button in a “Display message

Hi,

I looked over your AIP file and it seems that the condition that you use for the "Display a specific dialog" published event is too long. The limit of that field (and almost any other field) is set to 255 characters.

However, if you also want to be able to add a longer condition into that field, you can follow the steps below:
- go at the following path "C:\Program Files (x86)\Caphyon\Advanced Installer 11.1\fragments\"
- open the "Validation.aip" file in a text editor and search for the following row:

Code: Select all

<ROW Table="ControlEvent" Column="Condition" Category="Condition" Description="A standard conditional statement that specifies under which conditions an event should be triggered." Options="3" ColumnType="1" ColumnIndex="4" ColumnSize="255"/>
- set the "ColumnSize" to "0" and save it
- reopen your .AIP (project file), go in the Table Editor page, "ControlEvent" table
- find the control event that you want to modify, in your case:

Code: Select all

ConfigureDlg        Next       NewDialog       DirAppConnectionDlg       Condition
- double-click in the "Condition" column, then go at the end of the already written condition and add to it the property that you need
- build and run the project

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
r00t
Posts: 28
Joined: Thu Jan 26, 2012 7:03 pm

Re: localize the [Yes] and [No] button in a “Display message

Thank you Eusebiu, that works !
but i noticed something, if you go to the next dialog and went back to the previous one, the next time you'll be able to go to the next dialog even if you choose No, i guess the Output property is not reset after the first time ? how can i do that ?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: localize the [Yes] and [No] button in a “Display message

Hi,

You're welcome. I'm glad it works.

However, I'm not sure why you encounter this problem because when I tested it, on the AIP file that you sent, it worked well to me. If I go back and press the [NO] button, the installer does not go to the next dialog. I sent you the modified AIP on email, so you can take a look of it.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
r00t
Posts: 28
Joined: Thu Jan 26, 2012 7:03 pm

Re: localize the [Yes] and [No] button in a “Display message

everything works fine now,
Thank you Eusebiu.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: localize the [Yes] and [No] button in a “Display message

You're welcome. I'm glad it works.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”