I’ve only changed out one center cover. My best memory is that I didn’t mess with the cable at all. Just removed the lock and left it attached. Is there a reason to disconnect the cable?
You need to pull the lock assembly out the front of the cover, as I remember. To do this, the cable has to come loose from the mechanism.
My first two Valks liked to loosen that cable all by themselves, so I had the reverse of John's problem.
John, both the trike and the Tourer cables came loose at the top near the latch. I tried removing the latch and reinserting the little knob at the end into its retaining slot...to no avail. It still came out. So on both bikes, I mixed up some epoxy, slipped a thin wire under the cable at the slot location and tied it to the frame where the latch is bolted. Using a screwdriver I smeared the epoxy around around that end of the cable and on the retaining knob...than let the stuff dry. Might sound like overkill but I also fought with both cables coming loose at the top, seems once you remove the latch and cable as a unit that little retaining knob never again holds it in place at the top like designed. If it does, you're either lucky or blessed...or both.

One cable I had to repair...son-in-law got a little over zealous. I still had the outer casing so picked up some cable at Ace Hdwe. and created my own. I cut the cable to length, then using my self-made tool I built a new lead piece on each end once threaded into the outer casing, then out came the epoxy. They're in there to stay...at least the outer casing is.