How To Extend A Product's Life Span

How do you maintain a mature or even declining software and make it last as long as possible?