When installing a dryer vent in a wall, the most important factor is to use a short and straight route for the vent. Make sure to maintain a minimum 12-inch clearance above the ground and a maximum length of 25 feet for 4-inch ducts, with 5 feet deducted for every 90-degree turn. Secure the duct with hanger straps and follow all local codes and regulations.