Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to query user's language choice in innosetup script?

How to know what language user have selected to install setup in innosetup ? Im using innosetup 5.3 to package my application, its an multilingual application and so it would be useful if i knew what language user has selected to install the package. Thanks in advance.

like image 857
Naresh Avatar asked Apr 29 '10 10:04

Naresh


2 Answers

1.5.3? do you mean the current version (5.3)? if so if you have:

[Languages]
Name: "en"; MessagesFile: "compiler:english.isl"
...

you can return the language "en" via the {language} constant.

like image 146
Alex K. Avatar answered Oct 23 '22 08:10

Alex K.


Try this method to determine what language user selected:

[Code]
var
  ResultLan: String;

procedure MyConst();    
begin
  ResultLan := ExpandConstant('{language}');    
  MsgBox(ResultLan, mbInformation, MB_OK);        
end;

Pina

like image 43
Pina Avatar answered Oct 23 '22 09:10

Pina