Algorys
Algorys

Reputation: 1790

Select Multiple Language in Inno Setup

I started on Inno Setup and I am already pretty advanced. I managed to understand how to install files based on the language selected by the user. But now I wish I could let the user choose multiple languages ​​(so that all the files which belong to the language are installed) while keeping the choice of the language of the installer.

My program has a lot of documents and licenses on the basis of the language .

To be more specific , I want:

I think I should use " check" or something like that and maybe radio buttons.

I searched the web but I have only found examples where only one language is to be installed.

Can you help me?

Thank you in advance

Upvotes: 0

Views: 1413

Answers (1)

Bongo
Bongo

Reputation: 3153

I am not quite sure what exactly you want to do from your description but you should be able to create a custom page (http://www.jrsoftware.org/ishelp/index.php?topic=scriptpages) with some checkboxes on it and install only the language files that are checked on it by using a function which returns a Boolean value for each checked language. In the end you should have something like this.

[Files]
Source: "C:\filePath\German.license"; ... Check: CheckGerman
Source: "C:\filePath\French.license"; ... Check: CheckFrench

...

function InitializeSetup(): Boolean;
var 
  resultCode  : Boolean;
begin
   //Do something to check if German should be installed and set value to resultCode
   Result:=resultCode;
end;

Upvotes: 0

Related Questions