Problem : How to check if file exists in Inno Setup
I need help using the FileExists function in Inno Setup. Here’s my code. Please help me replace the lines that start with an asterisk (*) :
sFileName := ExpandConstant(‘{tmp}\mypr
isxdl_AddFile(url1,sFileNa
* If c:\windows\system32\msvcr8
sFileName2 := ExpandConstant(‘{tmp}\msvc
isxdl_AddFile(url3,sFileNa
* endif
Solution : How to check if file exists in Inno Setup
Something like:
sFileName := ExpandConstant(‘{tmp}\mypr
isxdl_AddFile(url1,sFileNa
if FileExists(ExpandConstant(
begin
sFileName2 := ExpandConstant(‘{tmp}\msvc
isxdl_AddFile(url3,sFileNa
end;