mekanophil
Posts: 14
Joined: Wed May 12, 2010 9:06 pm

Specify language on command line with EXE setup file

Hello,

We are in the process of evaluating Advanced Installer, and I'm hoping I can get some help with something. We want to deploy a single EXE file, but need to support multiple languages. This works fine, but our users require that the product can be installed silently from the command line. With that "other" product, we could run the following command line to achieve this:

Code: Select all

Setup.exe /v"/qn" /L1033 
The "/v" passes the following arg ("/qn") on to the MSI (to run silently), and the "/L" specifies the installation language. The important part here is that it bypasses the language selection dialog (which we want to display when not in silent mode). I like how with Advanced Installer I can just specify the msi args directly on the command line for the EXE, but can I specify a language? If not, the installation will always require some sort of user interaction.

Please advise. Thanks!

Regards,
Sam
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Specify language on command line with EXE setup file

Hi Sam,

Thank you for your interest in Advanced Installer.

The language of the EXE can be easily specified from the command line using this command:

Code: Select all

/exelang <langId>
Here are more details about the command line parameters accepted by our bootstrapper.

Please let us know if you have other questions or suggestions regarding our application.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mekanophil
Posts: 14
Joined: Wed May 12, 2010 9:06 pm

Re: Specify language on command line with EXE setup file

Hi Bogdan,

Thank you very much for the reply, and my apologies for making you point me to documentation that I should have been able to find myself. :D
One thing that you guys may add to your list is to update the dialog that is displayed on the command-line when using the /? option -- the /exelang switch wasn't listed.

So far I really like what I've seen with your product. I have a couple other minor questions, but I'll create a new thread. Thanks again!

Regards,
Sam
mekanophil
Posts: 14
Joined: Wed May 12, 2010 9:06 pm

Re: Specify language on command line with EXE setup file

I'm actually still a little confused, as the /exelang switch does not appear to be working. Now that I know what to search for I've found a couple other threads about this topic, so I'm not sure what I'm doing wrong. My command line is as follows:

Code: Select all

setup.exe /exelang 1043
This skips the language dialog, but does not run the installer in Dutch as expected. It is always in English. I'm using the Modern theme, I have no idea whether that would make a difference. Once I get that working, I want to be able to run the installation completely silently (including prerequisites). Is the following command line correct?

Code: Select all

setup.exe /exenoui /exelang 1043 /qn
Currently, prerequisites aside, I can run the installation silently by appending a "/qn" to the first command line I posted. However, it still does not run under the context of Dutch, which I can tell by the English help file that is installed.
Is this a bug, or am I doing something wrong? I am using 7.6.1.

Regards,
Sam
mekanophil
Posts: 14
Joined: Wed May 12, 2010 9:06 pm

Re: Specify language on command line with EXE setup file

I should have also stated that when run with a full UI, the language selection dialog does appear. I understand that this is a requirement for the /exelang switch to work. I am creating a single, multilingual package.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Specify language on command line with EXE setup file

Hi Sam,

Indeed after further testing I can confirm you that a bug exists in Advanced Installer regarding this command line.

Recently our bootstrapper was improved into passing the language from EXE to the MSI too, until now the MSI was choosing its language separately.
However it seems this change is not working as we expected for this command line, so the MSI doesn't have the same language as the bootstrapper.

A fix will be included in the next version of Advanced Installer.

Please let us know if you have other questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”