Can wall to wall carpet be installed over a Pergo floor?

Q: Can wall to wall carpet be installed over a Pergo floor or does the Pergo have to be taken up before installing carpet?

A: Just a guess, but I would think the smooth edge can be nailed through the pergo around the perimeter.

Don’t know if the staples would penetrate the surface for the underpad though. Maybe that could be taped in place with double sided tape.