karlf
Posts: 30
Joined: Tue Nov 01, 2016 7:30 pm

Set registry entry based off value from language selection dialog

Hello,

I currently have a multi-language installer in which the user chooses their install language as the first step. After the user chooses their install language, I would like to set a registry value based off their selection, as my program reads the registry to know what language it should display on startup.

I can see in the Dialogs section of AI that the combobox for the selection of the language is linked to the property "AI_BOOTSTRAPPERLANG".

From what I can tell, I am not able to reference that property in a condition for a custom action, nor can it be used in the "Registry" section.

I have the following questions:

How can I retrieve the value that the user has selected in the combobox of the language selection dialog?

How can I conditionally set a value in the registry based off the value retrieved from the combobox?

Thanks
karlf
Posts: 30
Joined: Tue Nov 01, 2016 7:30 pm

Re: Set registry entry based off value from language selection dialog

In doing some further research, I was able to find this thread:

viewtopic.php?t=8146

That suggests using the method shown on this page:

https://www.advancedinstaller.com/user- ... istry.html

While this is currently working for me, I'm wondering if there are any other known ways of doing this?

Thanks
Catalin
Posts: 7524
Joined: Wed Jun 13, 2018 7:49 am

Re: Set registry entry based off value from language selection dialog

Hello,

First of all, please accept my apologies for the delayed reply.

In what regards your request, the "best" method is indeed similar to the one described in the linked thread / article.

There may be other methods of achieving this (for instance through a custom action), but its probably best (and easiest) to use the method described by my colleague and in the article.

Please let me know if there is anything else I could help you with.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”