![]() |
total progress is 100, so just split the current process.
|
Quote:
|
I see, ISExec progress percentage don't want to work.
I also don't know how to use records.inf. But I have a solution to this. don't set progress for all archives, leave it to zero add this Var ArcInt: integer; begin ArcInt:=3 //defines the number of archives involved in process. ISDoneProgressBar1.Max:= ISDoneProgressBar1.Max * ArcInt end; Put these lines under procedure CurStepChanged(CurStep: TSetupStep); |
Can you please explain what these codes can do to the overall progress? :)
|
post your entire CurStepChanged procedure.
|
Quote:
var Comps1,Comps2,Comps3, TmpValue:cardinal; FindHandle1,ColFiles1,CurIndex1,tmp:integer; ExecError:boolean; InFilePath,OutFilePath,OutFileName:PAnsiChar; begin if CurStep = ssInstall then begin CheckTasks; WizardForm.ProgressGauge.Hide; WizardForm.CancelButton.Hide; CreateControls; WizardForm.StatusLabel.Caption:=ExpandConstant('{c m:Extracted}'); ISDoneCancel:=0; ExtractTemporaryFile('CallbackCtrl.dll'); InitWin7TaskBar; ExtractTemporaryFile('unarc.dll'); |
procedure CurStepChanged(CurStep: TSetupStep);
var Comps1,Comps2,Comps3, TmpValue:cardinal; FindHandle1,ColFiles1,CurIndex1,tmp:integer; ExecError:boolean; InFilePath,OutFilePath,OutFileName:PAnsiChar; ArcInt: integer; begin if CurStep = ssInstall then begin CheckTasks; WizardForm.ProgressGauge.Hide; WizardForm.CancelButton.Hide; CreateControls; WizardForm.StatusLabel.Caption:=ExpandConstant('{c m:Extracted}'); ISDoneCancel:=0; ExtractTemporaryFile('CallbackCtrl.dll'); InitWin7TaskBar; ExtractTemporaryFile('unarc.dll'); ArcInt:=3 //defines the number of archives involved in process, You can use {#ArcNumber}. ISDoneProgressBar1.Max:= ISDoneProgressBar1.Max * ArcInt |
1 Attachment(s)
Got this error when installation starts:
|
fix this
ExpandConstant('{c m:Extracted}'); space of cm in between to this ExpandConstant('{cm:Extracted}'); |
Each ArcInt i set represent a full 100% bar
i mean if i set it to 3 i get 300%. should i enable records? |
yep. totally. will go offline. going to attend my classes. :D
|
Quote:
|
Quote:
|
Not Complete yet
Link |
@Pakrat:
After Removing the "Precsrep:1" and adding "Precompver=inside" to the "[InstallOptions]" section of the Setup.ini, I now get the Following error: "Srep: Not an Srep Compressed File" Then, "An error occurred while unpacking! Unarc.dll returned an error code: -1 ERROR: archive data corrupted (decompression fails)" The first error is weird, because you can see the batch file i used to compress clearly uses srep (I also have the srep.exe in the same folder as the .bat file while compressing). The second error makes no sense, as I have tried compressing multiple times, the odds of all of them being corrupted are almost nil. I should probably add that this is the first time I am using external compression in innosetup, up till now I have only used internal (The second disc for R.A Uprising is only 18mb, so It would really be a waste of a disc). Do you think I might have missed something? |
| All times are GMT -7. The time now is 08:27. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com