I few years back a large chunk of my brake lines were replaced due to a failure in my brake booster. Working on my vehicle now I can see the usual cost of driving on salty winter roads, the lines are starting to look rather corroded; to the point that in the name of preventative maintenance I'll be replacing them sooner rather than later. This time I would like them to last longer than a handful of years in the same climate as what caused the corrosion.
What steps in preparation (or install) of brake lines can be taken to decrease the effects of corrosion affecting them? Would painting help, perhaps some sort of undercoating material? Would anti-seize on the line's threads prevent them rusting to calipers and other components?
Given this is preventative maintenance and not a repair where loss of drivability is occurring, expect that I have as much time as needed to prepare the lines ahead of time for anything that may take several days to do before install.