The invention provides a modular installation method for a thin-frame sliding door and window. The installation method comprises the following steps of preparation, sliding door leaf assembly, door frame profile installation, lower pulley block device installation, upper pulley block device installation, locking device installation and debugging. Through the above method, the thin-frame sliding door and window is simple in structure, and is provided with a splash-proof structure having the splash-proof function, upper and lower pulley block devices using the groove penetrating and lateral fixed installation mode are easy to install, and are high in the quality of installation, are not prone to loosen, and the integrity of sliding door leaves and the upper and lower pulley block devices isstrengthened, a more durable transmission locking structure is used, the transmission locking structure is convenient to fine-tune, the more attractiveness is achieved, and the thin-frame sliding doorand window uses the modular sliding door leaves, so that the thin-frame sliding door and window is more convenient to install, and glass can be centered, so that the glass is prevented from making hard contact with an aluminum profile to cause cracking, the wind pressure resistance is improved, the watertight performance and the airtight performance are improved, and sliding is facilitated.