[language] - Prerequisites and bootstrapper - 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!

Nico-D
Posts: 63
Joined: Mon Aug 18, 2008 2:34 pm

[language] - Prerequisites and bootstrapper

Hello,

I am currently using a main package with prerequisites on many others I have built too.

All are designed as follow:
- Translations > Create only a multilingual package. FR-EN(US)
- Media > Bootstrapper > Create EXE setup file. and Display language selection dialog.

When I first install the main package, everything is fine as it make me choose between FR and EN(US). Let choose "French".
The problem is that only the bootstrapper and the main package are in French, the other prerequisites are in English.

How can I transfer the value of the language I choose to prerequisite packages?

I am not sure everything I explained is clear, do not hesitate to ask me further details. :)

Best regards,
-- Nicolas D.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: [language] - Prerequisites and bootstrapper

Hi Nicolas,

I'm afraid that the language of the main installation cannot be passed to the prerequisites. However, since you create the prerequisite packages, you can add an EXE bootstrapper to them. This bootstrapper can use the same option to let the user select the installation language of each prerequisite.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Nico-D
Posts: 63
Joined: Mon Aug 18, 2008 2:34 pm

Re: [language] - Prerequisites and bootstrapper

Hi Cosmin,

Thank you for your answer.

I have already tested what you are proposing, and it is working. The problem is that the user has to choose many times the language he wants. But I think there are no other way.

There is no option to set for launching the dependant MSI's? Is it any %variable% that could be set? (I think this last point cannot exist as the bootstrapper is not a part of the MSI process).

Another related remark: building a MSI with "Automatically use system language for installation" and with a bootstrapper seems to build 2 different packages (if I exclude INI and EXE file for the bootstrapper case). I thought that the bootstrapper was only here to launch the MSI with the chosen language, but the MSI in the 2 cases are different. If I launch directly the MSI constructed for a bootstrapper, it does not use default system language.

Regards,
-- Nicolas D.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: [language] - Prerequisites and bootstrapper

Hi Nicolas,
There is no option to set for launching the dependant MSI's? Is it any %variable% that could be set?
I'm afraid not. Currently Advanced Installer does not support conditionally showing prerequisites. However, this feature is on our TODO list and it will be available in a future version.
building a MSI with "Automatically use system language for installation" and with a bootstrapper seems to build 2 different packages (if I exclude INI and EXE file for the bootstrapper case). I thought that the bootstrapper was only here to launch the MSI with the chosen language, but the MSI in the 2 cases are different. If I launch directly the MSI constructed for a bootstrapper, it does not use default system language.
Are you using a multilingual package or different packages for each language? Also, how many builds did you configure in the "Media" page?

Please note that Advanced Installer generates a single MSI for a multilingual package which uses only one build. It may also generate an EXE bootstrapper depending on the configuration you are using. If the multilingual MSI is launched directly, it will use the system locale to determine the language of the installation. If the MSI does not contain the language for the system locale, it will use the neutral language (English).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Nico-D
Posts: 63
Joined: Mon Aug 18, 2008 2:34 pm

Re: [language] - Prerequisites and bootstrapper

Hi Cosmin,
I'm afraid not. Currently Advanced Installer does not support conditionally showing prerequisites. However, this feature is on our TODO list and it will be available in a future version.
OK, thanks. For my purpose, I imagine it as a configurable command line that launches the MSI with msiexec and its specific options. :)
Are you using a multilingual package or different packages for each language?
"Create only one multilingual package" was checked.
Also, how many builds did you configure in the "Media" page?
I only defined one build ("DefaultBuild").
Please note that Advanced Installer generates a single MSI for a multilingual package which uses only one build. It may also generate an EXE bootstrapper depending on the configuration you are using. If the multilingual MSI is launched directly, it will use the system locale to determine the language of the installation.
Then, the same multilingual MSI is generated in the case of the bootstrapper, and in the case of no bootstrapper. Am I right?

Regards,
-- Nicolas D.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: [language] - Prerequisites and bootstrapper

Hi,
Then, the same multilingual MSI is generated in the case of the bootstrapper, and in the case of no bootstrapper. Am I right?
Yes, the MSI package should not be affected by the EXE bootstrapper. However, the EXE bootstrapper will use the system language for the installation while the MSI will use the system locale (this is why the same language may not be used in bothcases).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Nico-D
Posts: 63
Joined: Mon Aug 18, 2008 2:34 pm

Re: [language] - Prerequisites and bootstrapper

Hi Cosmin,

I have the following test machines, all XP SP3 Pro:

M1:
- system language is EN,
- system local is FR.
M2:
- system language is FR,
- system local is FR also.

I have set the bootstrapper to "Automatically use system language for installation" (case A), to "Display language selection dialog..." (case D), and the main package is "multilingual" FR-EN. I added a prerequisite to have time to read the language displayed and select "Finish" before installing it.
Yes, the MSI package should not be affected by the EXE bootstrapper [...] the EXE bootstrapper will use the system language for the installation while the MSI will use the system locale
Using the bootstrapper to launch the installation:

M1:
- case A displays EN for bootstrapper and FR for package, (OK)
- case D displays the chosen language for both. (OK)

M2:
- case A displays FR for BS and FR for package, (OK)
- case D displays the chosen language for both. (OK)

But I am facing the following situation which is in contradiction with your assertions. If I select directly the MSI (not the bootstrapper):

M1:
- case A displays FR for package, (OK)
- case D displays EN for package. (NOK)

M2:
- case A displays FR for package, (OK)
- case D displays EN for package. (NOK)

Do you think this is normal? The MSI package is affected by the EXE bootstrapper.

Regards,
-- Nicolas D.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: [language] - Prerequisites and bootstrapper

Hi Nicolas,

There seems to be a misunderstanding. You presented two cases:
1) you build a multilingual package which uses an EXE bootstrapper
2) you build a multilingual package as a MSI

Both cases shown different behavior based on the same language and locale of the target system. By "Yes, the MSI package should not be affected by the EXE bootstrapper" I meant that the MSI file generated for both cases (1 and 2) is the same (i wasn't referring to the installation, I was referring to the actual .MSI file).

Also, by "the EXE bootstrapper will use the system language for the installation while the MSI will use the system locale" I meant that case 1 will use the system language and case 2 will use the system locale.

So the MSI (the actual file) is not affected if you use the EXE bootstrapper, but the installation is (the bootstrapper uses the system language, not the locale). Please note that the system locale can be set by using the "Advanced" tab of the "Regional and Language Options" applet in the "Control Panel".

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Nico-D
Posts: 63
Joined: Mon Aug 18, 2008 2:34 pm

Re: [language] - Prerequisites and bootstrapper

Hi Cosmin,

Thank you for your explanations. But I was presenting two cases that are:

1) build a multilingual package which uses an EXE bootstrapper with "Automatically use system language for installation" option,
2) build a multilingual package which uses an EXE bootstrapper with "Display language selection dialog..." option.

Is "my" 2) equivalent to "build a multilingual MSI"?
...I meant that the MSI file generated for both cases (1 and 2) is the same (i wasn't referring to the installation, I was referring to the actual .MSI file).
OK, I understand.
...I meant that case 1 will use the system language and case 2 will use the system locale.
OK, if "my" 2) is equivalent to "build a multilingual MSI", I do not understand. :(

I have checked the right procedure to change the system local, and it is set to French (it was already set to French). I built a MSI with bootstrapper option (this is equivalent to build a MSI with no bootstrapper): launching the MSI directly should use the system locale, but it is not. The installation is in English.

A contrario, building a MSI with no bootstrapper and launching it gives an install in French.

Moreover, looking deeper into the MSI file, using md5sum.exe with no bootstrapper:
ab4b55442cfa572dbdb380b468532b5f *test-db.msi

with a bootstrapper:
778b6fd9fc9720064dfbefdbe5f90f63 *test-db.msi

This shows that the MSI file is affected by the existence of the bootstrapper.

Thank you for you patience, Cosmin.
Regards,
-- Nicolas D.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: [language] - Prerequisites and bootstrapper

Hi Nicolas,
I have checked the right procedure to change the system local, and it is set to French (it was already set to French). I built a MSI with bootstrapper option (this is equivalent to build a MSI with no bootstrapper): launching the MSI directly should use the system locale, but it is not. The installation is in English.
Please note that using a bootstrapper with the default options for a multilingual package will use the system language, not the system locale.

Basically, when using the bootstrapper there are two options:
1) "Automatically use system language for installation" - the system language is used. If the system language is not included in the package, English is used.
2) "Display language selection dialog (for multi-language packages)" - the user chooses the installation language. For a completely silent installation the system locale is used. If the system locale is not supported by the multilingual package, English is used.

When not using a bootstrapper the following happens:
- the system locale is used; if the system locale is not supported by the multilingual package, English is used

An important note is that the "Display language selection dialog (for multi-language packages)" option uses Windows Installer transforms to tell the package what language to use. Therefore, if you use this option but you launch the MSI directly, no transform is used so English is always the installation language.

Basically, when using an EXE bootstrapper for your package some specific elements and changes are used in order to provide the bootstrapper functionalities. Therefore, launching the MSI directly when you built it with a bootstrapper may not have the same result as launching the EXE.

Please note that a different MD5 signature is generated every time you build the package. Therefore, modifying the project and building it will generate a new MD5 even if nothing was really changed in the MSI.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Nico-D
Posts: 63
Joined: Mon Aug 18, 2008 2:34 pm

Re: [language] - Prerequisites and bootstrapper

OK Cosmin, I think everything is clear for me now. Thanks.

As a conclusion, the major limitation I am encountering is what is on your TODO: "the language of the main installation cannot be passed to the prerequisites".

Thanks for all, incident closed for me.

Regards,
-- Nicolas D.
Nico-D
Posts: 63
Joined: Mon Aug 18, 2008 2:34 pm

Re: [language] - Prerequisites and bootstrapper

Hi Cosmin,

I am sorry to reopen this thread.

Actually, I want to speak of a very close related problem: I am doing an install using a bootstrapper, with the ability of choosing the language (Fr/En), on an English system with a French locale. When choosing French, everything is working as you explained before. But it appears that the buttons "Next", "Finish", "Back", etc. are using the system language and not the chosen (or locale) language.

Is there any workaround?

Best regards,
-- Nicolas D.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: [language] - Prerequisites and bootstrapper

Hi Nicolas,

If you are referring to the prerequisites wizard, please note that the system language is used for the "Back", "Next" and "Cancel" buttons. This is so that the user can understand what the buttons do. Three buttons which use an unknown language are very confusing for an user, he wouldn't even know which of the buttons cancels the installation.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”