Disconnect the Duet's power source by either unplugging it from the wall outlet or turning off the breaker in your home's service panel.
Open the door and pry off the spring clamp which surrounds the door boot seal.
Pull the right side of the boot seal off of the side of the door to gain access to the door latch, located behind the door jamb.
Remove the mounting screws from the front of the door jamb, located above and below the door latch.
Insert your hand behind the door jamb and grasp the latch. Lift the latch and then pull it away from the washing machine frame.
Transfer the two wire connectors connected to the rear of the old door latch and connect them to the new door latch. Then disconnect the wire connectors, depress the tab and pull the connector straight off of the latch.
Install the new door latch and secure it using the two mounting screws.
Move the boot seal back into position and then reinstall the spring clamp to hold the seal in place.
Close the washer door and restore the appliance's power connection.