How Does AI detect the User Language? - Advanced Installer Community
Dev63
Posts: 25
Joined: Mon Dec 02, 2013 8:21 pm

How Does AI detect the User Language?

I am trying to test my multi-language installer, but I cannot seem to get the AI-created installer to detect and use the user language. If I create a pure French installer, that displays in French. But if I create a multi-language installer, it always displays in English. I have selected "Automatically use current user language for installation" under Translation -> Languages -> UI Language.

I have created an Advanced Installer multi-language .msi, and a multi-language .exe (both will all resources contained inside). Both show AI dialogs in English (the default language, and the system language).

I am testing on Windows 8.1, setting the language to be fr-ca via the Control Panel -> Language. When my program runs, it correctly uses its own fr-fr resources.

AI documentation says "When the package is installed the language will be selected according to the regional settings on the target computer". Are there other settings I need to make in the Control Panel so that AI will know to show the dialogs in French?
Dev63
Posts: 25
Joined: Mon Dec 02, 2013 8:21 pm

Re: How Does AI detect the User Language?

BTW, I also tried setting Control Panel -> Region -> Administrative -> Change System Locale to French (Canada), but after a reboot it, too, seemed to have no effect on Advanced Installer's packages.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How Does AI detect the User Language?

Hi,

When the "Automatically use current user language for installation" option is checked, the language returned by the "GetUserDefaultLangID()" function is preferred by the installer.

This function returns the language identifier for the current user as set under Control Panel > Clock, Language, and Region > Change date, time, or number formats > Formats tab > Format dropdown.

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dev63
Posts: 25
Joined: Mon Dec 02, 2013 8:21 pm

Re: How Does AI detect the User Language?

Yes, making the Formats change solved the problem. Thanks! You guys are great.

Just to be clear, though, I need to use the bootstrapper; creating a multi-language .msi file will not auto-detect which language to use. Correct?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How Does AI detect the User Language?

Hi,
Yes, making the Formats change solved the problem. Thanks! You guys are great.
You're welcome. Glad to help.
Just to be clear, though, I need to use the bootstrapper; creating a multi-language .msi file will not auto-detect which language to use. Correct?
It is not mandatory to use the Bootstrapper, selecting a MSI package type in the Media page will also auto-detect the current user language. Didn't it work for you?

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

Return to “Common Problems”