|
|
|
#1
|
|||
|
|||
|
how can i apply custommessage for Main files component ?
Script.iss Code:
function TranslateComponentName(StrName: String): String;
begin
case Trim(Uppercase(Copy(StrName, Pos('cm:', LowerCase(StrName)) + Length('cm:'), Length(StrName)))) of
'EN', 'ENGLISH' : Result := CustomMessage('CompEnglish');
'FR', 'FRENCH' : Result := CustomMessage('CompFrench');
'DE', 'GERMAN' : Result := CustomMessage('CompGerman');
'IT', 'ITALIAN' : Result := CustomMessage('CompItalian');
'ES', 'SPANISH' : Result := CustomMessage('CompSpanish');
'PL', 'POLISH' : Result := CustomMessage('CompPolish');
'RU', 'RUSSIAN' : Result := CustomMessage('CompRussian');
'BR', 'BRAZILIAN' : Result := CustomMessage('CompPortugueseBrazil');
'MX', 'MEXICAN' : Result := CustomMessage('CompMexican');
'CZ', 'CZECH' : Result := CustomMessage('CompCzech');
'CL', 'COMPLAN' : Result := CustomMessage('CompLan');
'CB', 'COMPBONUS' : Result := CustomMessage('CompBonus');
'GC', 'COMPMAIN' : Result := CustomMessage('CompMain');
else
Result := StrName;
end;
end;
Code:
ComponentsSize := 0;
SetArrayLength(CompIndexList, 0);
IniFile := ExpandConstant('{tmp}\Settings.ini');
ComponentsPageAvai := GetIniBool('ComponentsSettings', 'Enable', False, IniFile);
if ComponentsPageAvai then
begin
if IniKeyExists('ComponentsSettings', 'Component' + IntToStr(I) + '.Name', IniFile) then
begin
CompName := 'cm:COMPMAIN';
ComponentsList.AddCheckBox(CompName, '', 0, True, False, True, True, nil);
end;
Code:
English.CompMain=Main files |
| Sponsored Links |
|
#2
|
|||
|
|||
|
Quote:
Code:
'CM', 'COMPMAIN' : Result := CustomMessage('CompMain');
Code:
'GC', 'COMPMAIN' : Result := CustomMessage('CompMain');
And of course like as You added to CustomMessages.iss Code:
English.CompMain=Main files Last edited by Schabik; 30-03-2019 at 13:12. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Help] need Advanced Installer script with Razor1911's UltraArc module | rez3vil | Conversion Tutorials | 3 | 15-04-2024 03:24 |
| Portable Installer Inno Setup Script | y_thelastknight | Conversion Tutorials | 59 | 23-10-2020 01:02 |
| INDEX - Conversion Tutorial Index | Razor12911 | Conversion Tutorials | 5 | 11-06-2020 03:05 |
| Simple Arc Installer | 78372 | Conversion Tutorials | 1 | 15-06-2017 16:37 |
| MSC+Srep+lzma Simple Script Example | gozarck | Conversion Tutorials | 10 | 07-09-2015 17:31 |