bkb 0 Posted 9 hours ago 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
Lars Fosdal 1815 Posted 7 hours ago 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