Battery Drains ... always
Since my post about battery draining when in use, and charging while turned off, it is now draining all the time and I had to remove the battery to preserve a small amount of charge. It drained from 50% down to 5% in a couple hours turned off, charger plugged in and glowing yellow.
Mayer asked about my charger, and I have several, some are Apple 65 watt and some are after market 65 watt. It makes little difference which I plug in.
upon where the battery came from it could be it, or a power drain from the computer. There's a lot of cheap batteries manufactured in China that fail right out of the box, or have charging "issues" (you should expect a free replacement from the vendor in such cases).
When running any computer there's often not a lot of excess power to charge batteries available so it's no surprise to me that it charges only when off since you seem to have something draining system.
Until you get the new logic board remove the battery when the unit is off but not charging.
FWIW updating or installing large applications while running on battery only is not good practice. In fact many Mac OS installers nag you about not being plugged into an external power source because a failure in the middle of an update or install could pooch your HDD.
If this answer was helpful please remember to return an mark it Accepted.