procedure TSetupForm.MyCopyFile(SourceFileName,TargetFileName: String);
Var
S: TFileStream;
T: TFileStream;
begin
S := TFileStream.Create(SourceFileName, fmOpenRead);
T := TFileStream.Create(TargetFileName, fmOpenWrite or fmCreate or fmOpenReadWrite);
T.CopyFrom(S, S.Size);
T.Free;
S.Free;
end;