Just when they were beginning to show some early-season promise, the Nets yesterday announced that point guard Jeremy Lin will be out for at least the next two weeks with a left hamstring injury suffered in Wednesday night’s win over Detroit.

That means Lin, who left Charlotte to sign with the Nets as a free agent this past summer, will miss Friday night’s game against his former team at Barclays Center and will not return to Madison Square Garden as a Net next Wednesday against the Knicks. According to the Nets’ timetable, Lin will be re-evaluated on Nov. 17 at the earliest, which comes the day before a four-game road trip ends in Oklahoma City. Lin likely will miss the next seven games for the Nets (2-3).

advertisement | advertise on newsday

The Nets also got some timely good news. Point guard Randy Foye, who missed the first five games with a right hamstring strain, is listed as probable for Friday night. Point guard Greivis Vasquez, however, is out with a sore ankle.

A television replay showed that Lin suffered his hamstring strain late in the second quarter as he drove toward the basket and collided with Pistons defender Ish Smith. Lin landed awkwardly on his left leg after making a pass. He came out with 2:14 remaining in the half and did not return after scoring 10 points and adding four assists.

Isaiah Whitehead served as Lin’s primary backup and had five points, four assists and five turnovers in 20 minutes. Sean Kilpatrick played the point in the fourth quarter and scored nine of his 24 points.

“As soon as Jeremy went out, I was like, ‘I’m going to have to play the point,’ ” Kilpatrick said. “That was something I did throughout Summer League, and Coach [Kenny Atkinson] did a great job during the summer making sure that I played the point because you never know when that time is going to come that you need to play the point. I just want to continue to keep getting everyone involved and make sure that I stay aggressive on top of that.

advertisement | advertise on newsday

“I said to Jeremy, ‘I don’t know how you do it. This is kind of crazy.’ I embraced it, though. I knew I had [Lin] in my back pocket talking to me, and I was looking at Coach almost every play to figure out what to run. I think I adjusted well to it.”