View Single Post
  #3  
Old 08-03-2013, 00:09
Grumpy's Avatar
Grumpy Grumpy is offline
Moderator
 
Join Date: Jun 2004
Location: Australia
Posts: 5,695
Thanks: 1,256
Thanked 1,851 Times in 812 Posts
Grumpy is on a distinguished road
Quote:
Originally Posted by altef_4 View Post
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.
__________________
Can't find a Game Conversion? Check the 'Conversion INDEX'

Last edited by Grumpy; 08-03-2013 at 06:56.
Reply With Quote