reuse language code from base install when updating - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

reuse language code from base install when updating

G'day,

I'm using AI 7.7 build 28804

I recently changed from a single-language install package to a multi-lang install package. I have selected the "create only a multilingual package" option on the Translations page and the "display language selection dialog" option on the Bootstrapper page. When the package is installed, the user is prompted to choose a language. I then save the ProductLanguage value in the registry, so that my app can use it as well. This is all working fine.

The problem I have is how to install an update and reuse the language-code / ProductLanguage which the user chose during the base install.

If I don't use the /exelang switch when installing the new package, the language selection dlg is shown and the user must choose a language again, even though he/she already did this for the first/base install. I would like to skip the language selection dlg by automatically providing the appropriate language-code.

What I don't understand is how to get the language-code (e.g. 1031, 1033) from the registry (I saved it to the registry during the initial install) and then include it on the command-line when invoking the new install package. My updates.ini file obviously contains a "CommandLine=" field, which I am already populating with the "/qb" switch. If I add the "/exelang 1033" switch, that successfully skips the language selection dlg, but the language-code is static and is not adjusted per-user.

Since the updates.ini file is "global" and lives on the download server, how can I use the appropriate language-code for each user based on his/her selection during the base install?

Thanks for your help,
Todd
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: reuse language code from base install when updating

Hello Todd,

Unfortunately you cannot achieve this using the current version of Advanced Installer.
I have added this improvement on our TODO list and it will be available in a future version of Advanced Installer.

Thank you,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: reuse language code from base install when updating

Thanks for confirming, Mihai.

It would seem like my situation is the most common use-case for the /exelang switch. If the behavior I want is currently unsupported, I'm just wondering what is the typical use-case? Having that info might allow me to redesign my overall update model and use the /exelang switch in a different way.

Thanks much,
Todd
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: reuse language code from base install when updating

Hi again,

I just found a forum post "How to localize and specify language for the Updater project" which is very helpful and answers some of my questions. Just wanted to provide that as a reference for anyone else struggling with this issue.

-Todd

Return to “Common Problems”