We highly recommend painting prior to installing new carpets. Should the carpet be being replaced by floor boards, you should paint first, then sand floors and then we can come back to paint the skirtings after.