You can install the battery, but the dealer needs to clear the codes. The car will not operate until that is done due to safety concerns messing with 340 Volts. So, unless you can find an independent shop that has the equipment to clear the codes you are stuck with the dealer. Given the cost to repair, I would sell the car to a salvage yard and buy another used Volt.