PDA

View Full Version : ISDone & Time Remaining


Midnights
26-10-2018, 21:58
Hello, i have edited ISDone_Exemple.iss with the compressor i use, yes finally i have understand how it work lol... but for some reason, only elapsed time work, remaining shot nothinh and all elapsed also, someone can help me to correct that please?

Also, how do you define "arc archive as a component?"


#ifdef Components
[Types]
Name: full; Description: Full installation; Flags: iscustom

[Components]
Name: text; Description: ßçûê ñóáòèòðîâ; Types: full; Flags: fixed
Name: text\rus; Description: Ðóññêèé; Flags: exclusive; ExtraDiskSpaceRequired: 100000000
Name: text\eng; Description: Àíãëèéñêèé; Flags: exclusive; ExtraDiskSpaceRequired: 200000000
Name: voice; Description: ßçûê îçâó÷êè; Types: full; Flags: fixed
Name: voice\rus; Description: Ðóññêèé; Flags: exclusive; ExtraDiskSpaceRequired: 500000000
Name: voice\eng; Description: Àíãëèéñêèé; Flags: exclusive; ExtraDiskSpaceRequired: 600000000
#endif


// Ïîäãîòàâëèâàåì ïåðåìåííóþ, ñîäåðæàùóþ âñþ èíôîðìàöèþ î âûäåëåííûõ êîìïîíåíòàõ äëÿ ISDone.dll
// ìàêñèìóì 96 êîìïîíåíòîâ.
Comps1:=0; Comps2:=0; Comps3:=0;
#ifdef Components
TmpValue:=1;
if IsComponentSelected('text\rus') then Comps1:=Comps1+TmpValue; //êîìïîíåíò 1
TmpValue:=TmpValue*2;
if IsComponentSelected('text\eng') then Comps1:=Comps1+TmpValue; //êîìïîíåíò 2
TmpValue:=TmpValue*2;
if IsComponentSelected('voice\rus') then Comps1:=Comps1+TmpValue; //êîìïîíåíò 3
TmpValue:=TmpValue*2;
if IsComponentSelected('voice\eng') then Comps1:=Comps1+TmpValue; //êîìïîíåíò 4
// .....
// ñì. ñïðàâêó
#endif

Jiva newstone
27-10-2018, 20:18
@Midnights If your are using component then u have to run first and the records.inf for showing correct progress and remaining time and other reason is you are not value the ISARCEXTRACT means the second value should be any value, example
if not ISArcExtract ( 0, 100, ExpandConstant('{src}\data1.bin'), ExpandConstant('{app}'), '', false,(''), ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\temp-fileforums'), false) then break;

Jiva newstone
27-10-2018, 20:20
For three archives :
if not ISArcExtract ( 0, 60, ExpandConstant('{src}\data1.arc'), ExpandConstant('{app}\'), '', false, '',ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;

if not ISArcExtract ( 0, 30, ExpandConstant('{src}\data2.arc'), ExpandConstant('{app}\'), '', false, '',ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;

if not ISArcExtract ( 0, 10, ExpandConstant('{src}\data3.arc'), ExpandConstant('{app}\'), '', false, '',ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;
i hope now u understand

Midnights
28-10-2018, 01:52
Why 60 30 10? also the timer not work with a single archive...

Ok for add line, but how make it selective and optionnal... as a component?

Jiva newstone
28-10-2018, 02:45
Why 60 30 10? also the timer not work with a single archive...

Ok for add line, but how make it selective and optionnal... as a component?
60 30 10 are the progress value, because if you have 3 archives you must split 100 to 3 archives according to size, example 1archives = 60 means it the biggest archives so i just put 60 and other is small and small so 30 and 10

and for component see the ISDONE complete example src which is available in krinkels (search for profrager's ISDONE)

Midnights
30-10-2018, 20:27
Can you give me that? I can't register at krinkels because is russian...

Jiva newstone
01-11-2018, 20:16
Can you give me that? I can't register at krinkels because is russian...
bottom left corner click the Russian (RU) and then select english or use google page translator