If you want to maximize the longevity of your wood apply your preservative and paint all surfaces after fitting it and prior to installing it.
I've been using Abatron products to stabilize and restore wood in historic houses for 20 years. Amazing stuff consolidates spongy and rotten wood and...