Which form of power should be connected first, AC or DC?

AC power should be connected first, then the alarm will be mounted on the mounting bracket which will activate DC power.