nicoco007
Posts: 6
Joined: Mon Dec 30, 2013 5:59 am

Translate [Finish1] Property?

Is it possible to translate the [Finish1] property of the metro theme? I have not found a way of doing this, except removing that property and replacing it with "installed". The problem is, when using the maintenance UI, it also says installed, and not uninstalled or repaired...

Does anyone know if this is possible?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Translate [Finish1] Property?

Hello,

In the Default strings tab from the Translations page you can translate default strings from the dictionary.

Please note that the Finish control from the ExitDialog has the Property.ButtonText_Finish localization ID.

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

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nicoco007
Posts: 6
Joined: Mon Dec 30, 2013 5:59 am

Re: Translate [Finish1] Property?

Hi Dan,

I am not trying to change the text on the finish button, but change the [Finish1] property, which is located in the description text on the exit dialog of the metro theme. It takes the form of "Installed", "Uninstalled" and "Repaired". Is there any way to translate this?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Translate [Finish1] Property?

Hello,

I'm afraid we don't fully understand what you are trying to achieve. Do you have a multilingual package and want to localize the related property or do you have an installation package built in one language and you are trying to change the related property value based on the installation mode (install, maintenance, etc)? Please give us more details about what you are trying to achieve (maybe exemplify).

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nicoco007
Posts: 6
Joined: Mon Dec 30, 2013 5:59 am

Re: Translate [Finish1] Property?

Daniel wrote:Hello,

I'm afraid we don't fully understand what you are trying to achieve. Do you have a multilingual package and want to localize the related property or do you have an installation package built in one language and you are trying to change the related property value based on the installation mode (install, maintenance, etc)? Please give us more details about what you are trying to achieve (maybe exemplify).

All the best,
Daniel
I have a multilingual package. And yes, I am trying to change the property [Finish1], which is based on the installation mode. You can see what I am talking about in this image:
Image

As you can see, this changes if I install, uninstall or remove the program:
Image
Image
Image

That is what I am trying to achieve.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Translate [Finish1] Property?

Hello,

In order to achieve what you want you can replace the [Finish1] property with your own custom property (e.g. MY_PROP) in the displayed text value. Next, all you have to do is to add "Set installer property" custom action which will set accordingly your MY_PROP property based on installation mode and on "ProductLanguage" property value.

Also, you can take a look on "Language Identifier Constants and Strings" article which could be useful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jonathan.reyes1
Posts: 20
Joined: Wed Jan 07, 2015 11:59 am

Re: Translate [Finish1] Property?

Hi, I run into the same issue and I tried what you said and it worked for the install sequence. But I cannot get the value of my MY_PROP property during uninstall or maintenance.
Do you have any another suggestion fix this issue?

Basically I added three custom action, each with Execution Stage Condition checked for Install, Uninstall and Maintenance. The three custom action "SetProperty" use the same property "MyFinish1" and in each custom action I change the Value appropriately to "Installed", "Removed" and "Changed" with the impression that depending on the Installer operation the MyFinish1 property will be set appropriately. This is not the case, when performing Uninstall I expected "Removed" ; the value for MyFinish1 is still "Installed" and for Maintenance instead of "Changed" the value is still "Installed". Is there something I forgot to set or I am using it incorrectly?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Translate [Finish1] Property?

Hello,

This may happen if you have added your custom actions in "Install Execution Stage". Please keep in mind that the property values set in "Install Execution Stage" are not propagated in the "Wizard Dialogs Stage" (which contains the "ExitDialogs"). Therefore in order to achieve what you want you should move the related "Set installer property" custom actions right after "Wizard Dialogs Stage -> MaintenanceTypeDlg" dialog.

Also, I've attached a sample create with AI 11.7.1 which implements a similar scenario.
sample.zip
(5.44 KiB) Downloaded 404 times
If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jonathan.reyes1
Posts: 20
Joined: Wed Jan 07, 2015 11:59 am

Re: Translate [Finish1] Property?

Worked like a charm! Thank you.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Translate [Finish1] Property?

You're welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”