Archive: diferent install atributs like LicenseText


conditionnal install atributs like LicenseText
Hi

I want to make a English/French install.
So in .onInit I check the language of the system, and then I would like to set the text of the LicenseText (and the other install atributs) in French or English.

The probleme is that the install atributs can not only be set in function or section.

So how can I do that?

thanks for your help


Create two separate installers. Let a third installer check the language (let it run silently) and let this script run one of the other installers depending on system language.

BTW, French NSIS available here.

-Hendri.


Originally posted by Smile2Me
Create two separate installers. Let a third installer check the language (let it run silently) and let this script run one of the other installers depending on system language.

BTW, French NSIS available here.

-Hendri.
This is not a good solution because the installer will be 2 times bigger but both install will contain the same files...
Plus, I will have to compile 3 install!

Isn't there a better way to do it in only ONE script?

I know very well the WinampFR website :-P

Originally posted by posttitle

This is not a good solution because the installer will be 2 times bigger but both install will contain the same files...
Plus, I will have to compile 3 install!
Isn't there a better way to do it in only ONE script?
I know and nope.
This is the best you can do. With some effort, you can create two tiny installers for the different languages that will be started by a main (silent) installer. Then these custom installers only record settings to the registry (including a setting for finishing the installer or pressing cancel). After "ExecWait" read all necessary regsettings and perform the task.

If your program is small, the actual install (extract, copy) will not take so much time. A progressbar is not really needed then. The main installer could just have a background and display a message afterwards. If your program is big, show some message (using an external exe or dll), that the installer is busy.

Other solutions could well exist, but this was my first idea...

[edit]
Or create an installer of only custom pages using InstallOptions. You can control which version (French/English) of each (small!) ini will be extracted and you display the proper one. Using radionbuttons, checkboxes and dirrequest, you can build an installer!
[/edit]

Good luck,
-Hendri.

This solutions sound better.. but I really though there was an easiest way to just display diferent sentences on the install windows.

For exemple, is it possible to make 2 licences windows?
If so, can I directly go to the one I want and skip the other, depending of the systeme language?

Thanks a lot for your help!


Originally posted by posttitle
For exemple, is it possible to make 2 licences windows?
No, you could display the different languages in the one lisense window redirecting French people to the lower part of the lisense window at the top. If it is only the LisenseText that you want to have in two languages you can also think of loading the proper text document into Notepad and continue when ExecWait returns.

But if you also want to have all buttons/strings/etc in two languages, you should create two separate installers / use InstOpts.

I can remember Justin had the idea to create multilingual support for NSIS, but he is not working on NSIS right now.

-Hendri.