Always install the inverter before wiring. Otherwise, you may get an electric shock or have bodily injury.