|
|
|
#1
|
|||
|
|||
|
Need help with components
Hello everyone, I just want to know that if there are two archives, German.bin and English.bin, so I want to know what I have to add in the [Components] section, and what I have to add or edit in is done section, so that when some select German component then it will only install German.bin and if someone select English.bin then it install English language only. It will be better if you give a short example also.
Thanks in advance for helping me! |
| Sponsored Links |
|
#2
|
||||
|
||||
|
Code:
[Components]
Name: text; Description: Select Language Text; Types: full; Flags: fixed
Name: text\ger; Description: German; Flags: exclusive;
Name: text\eng; Description: English; Flags: exclusive;
Component Selection:
if IsComponentSelected('text\ger') then Comps1:=Comps1+TmpValue;
TmpValue:=TmpValue*2;
if IsComponentSelected('text\eng') then Comps1:=Comps1+TmpValue;
FreArc ISDone Extraction:
if not ISArcExtract ( 1, 0, ExpandConstant('{src}\German_lng.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract ( 2, 0, ExpandConstant('{src}\English_lng.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
__________________
if you understand read more Last edited by rinaldo; 02-03-2016 at 11:09. |
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
|||
|
|||
|
And bro, if I have 7 LANGUAGE components then the components selection will be same or we have to add some more lines, it will be great if you show one small example. Thanks a lot rinaldo
|
|
#5
|
||||
|
||||
|
type:
Code:
Name: text; Description: Select Language Text; Types: full; Flags: fixed
Name: text\ger; Description: Deutsch; Flags: exclusive; ExtraDiskSpaceRequired: 100000000
Name: text\eng; Description: English; Flags: exclusive; ExtraDiskSpaceRequired: 200000000
Name: text\fra; Description: Francaise; Flags: exclusive; ExtraDiskSpaceRequired: 300000000
Name: text\spa; Description: Espanol; Flags: exclusive; ExtraDiskSpaceRequired: 400000000
Name: text\rus; Description: Russian; Flags: exclusive; ExtraDiskSpaceRequired: 300000000
Name: text\ita; Description: Italian; Flags: exclusive; ExtraDiskSpaceRequired: 600000000
Name: text\bra; Description: Brazilian; Flags: exclusive; ExtraDiskSpaceRequired: 50000000
if IsComponentSelected('text\ger') then Comps1:=Comps1+TmpValue;
TmpValue:=TmpValue*2;
if IsComponentSelected('text\eng') then Comps1:=Comps1+TmpValue;
TmpValue:=TmpValue*2;
if IsComponentSelected('text\fra') then Comps1:=Comps1+TmpValue;
TmpValue:=TmpValue*2;
if IsComponentSelected('text\spa') then Comps1:=Comps1+TmpValue;
TmpValue:=TmpValue*2;
if IsComponentSelected('text\rus') then Comps1:=Comps1+TmpValue;
TmpValue:=TmpValue*2;
if IsComponentSelected('text\ita') then Comps1:=Comps1+TmpValue;
TmpValue:=TmpValue*2;
if IsComponentSelected('text\bra') then Comps1:=Comps1+TmpValue;
if not ISArcExtract ( 0, 65, ExpandConstant('{src}\data.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract ( 1, 5, ExpandConstant('{src}\German_lng.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract ( 2, 5, ExpandConstant('{src}\English_lng.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract ( 3, 5, ExpandConstant('{src}\Francaise_lng.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract ( 4, 5, ExpandConstant('{src}\Espanol_lng.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract ( 5, 5, ExpandConstant('{src}\Russian_lng.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract ( 6, 5, ExpandConstant('{src}\Italian_lng.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
if not ISArcExtract ( 7, 5, ExpandConstant('{src}\Brazilian_lng.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
__________________
if you understand read more |
|
#6
|
|||
|
|||
|
Quote:
|
|
#7
|
||||
|
||||
|
+1 component section
+1 components Selected +1 ISArcExtract if you do not use file records.ini you have to divide the progression as a percentage ...
__________________
if you understand read more |
|
#8
|
|||
|
|||
|
Can you please give me a example, so that I will know how it will install all the english-len.bin etc. Will be installed when someone select that component, BTW, I am not gonna to use records.ini
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Conversion Designer/Installer Creator | Razor12911 | Conversion Tutorials | 1613 | 03-10-2024 01:24 |
| How to edit components in Metro UI Install | Amsal | Conversion Tutorials | 11 | 19-11-2016 09:12 |
| Please test the acceleration unpack | NBB | Conversion Tutorials | 18 | 19-12-2015 08:25 |
| Help for #define components and #indef Components | alucard1973 | Conversion Tutorials | 0 | 30-04-2015 05:52 |
| Angry Birds Collection-CD *INNO SETUP* | plipzide | PC Games - CD/DVD Conversions | 8 | 11-06-2013 08:09 |