Jump to content

bkb

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. bkb

    how to assign 2 paths

    I'm trying to send the path stored in (FileExists(ExpandConstant) to DefaultDirName The script I made is like this, if the first if is not found, it checks the next one but I just can't send the path to the DefaultDirName
  2. bkb

    how to assign 2 paths

    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;
×