Quote:
Originally Posted by altef_4
Code:
[Setup]
AppName=Example
AppVerName=Example
DefaultDirName={pf}\Example
OutputDir=.
OutputBaseFilename=Example
[Tasks]
Name: VCCheck; Description: Install Microsoft Visual C++ 2005 Redist
Name: PhysXCheck; Description: Install Nvidia PhysX
[Run]
Filename: {src}\Redist\vcredist_x86.exe; Parameters: /q; StatusMsg: Installing Microsoft Visual C++ 2005 Redist...; Flags: waituntilterminated; Tasks: VCCheck; Check: SetPBPos
Filename: {src}\Redist\PhysX.exe; Parameters: /qn; StatusMsg: Installing Nvidia PhysX...; Flags: waituntilterminated; Tasks: PhysXCheck; Check: SetPBPos
[_Code]
function SetPBPos:boolean;
begin
if (WizardForm.ProgressGauge.Max > 100) then WizardForm.ProgressGauge.Max:=100;
if (WizardForm.ProgressGauge.Position = 100) then WizardForm.ProgressGauge.Position:=0;
WizardForm.ProgressGauge.Position:=WizardForm.ProgressGauge.Position + 50;
result:= true;
end;
|
Thanks 'altef_4' just be wary of the 'Russian' words though .... I think my
red edits are correct. Feel free to correct me if I am wrong.