View Single Post
  #677  
Old 30-01-2021, 07:00
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,337 Times in 2,839 Posts
KaktoR is on a distinguished road
Quote:
Originally Posted by samadrahman74 View Post
hi
How to disable the component ,If the file does not exist

Next time ask your question in a proper topic, for example: https://fileforums.com/showthread.php?t=93193

For your problem: There is a FileExists function for this

Example
Code:
if FileExists(ExpandConstant('{src}\fg-optional-old-hitmen-1.bin')) then begin
{code if file exist}
else
{code if file does not exist}
end;
__________________
Haters gonna hate
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
samadrahman74 (30-01-2021)