Jump to content
Sign in to follow this  
bkb

how to assign 2 paths

Recommended Posts

If anyone knows, could you tell me how to assign 2 paths to this directive?

I declared this path here at the beginning, but it only receives 1

 

[setup]

DefaultDirName=C:\mygame\TEST

 

[code]
   function InitializeSetup(): Boolean;
   begin         
if (FileExists(ExpandConstant('C:\mygame\TEST\install.exe'))) then
begin
Result := true;
end
else if (FileExists(ExpandConstant('D:\mygame\TEST\install.exe'))) then
begin
Result := true;
end
else
begin
Result := false;
end
end;

 

Share this post


Link to post
function InitializeSetup(): Boolean;
begin
  Result := FileExists(ExpandConstant('C:\mygame\TEST\install.exe'))
         or FileExists(ExpandConstant('D:\mygame\TEST\install.exe'));
end;

Not sure what you mean by "assign 2 paths to this directive".

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×