Running replacement cables
Many years ago, I posted how to pull a replacement brake cable by sliding thin tubing over the existing cable before removing it. That becomes a guide for the new cable. It's cheap and easy.
It should be good for shifter cables too. This wouldn't work with Di2 cables that have permanent connectors.
From 2014!
replacing internal cables
And the linked video is still working.