@Jules. A trick I have used when changing batteries on 'sensitive' cars is to use a fully charged 'jump pack' as a temporary supply for the ECU etc.
Connect the earth lead of the jump pack to a good earth on car and the positive of the jump pack to the positive battery clamp/lead. You can just about undo the battery lead with the jump pack connected.....you need to make sure it stays connected.

This will act as a 'keep alive' for the ECU and alarm and it will be non the wiser

Take your time cos it's not easy to juggle everything, but if you work on different cars and are not sure what to expect then it is a good 'better safe than sorry' option