Extensive efforts have been dedicated to enhancing the expression of tumor necrosis factor-related apoptosis-inducing ligand (TRAIL) in cancer cells for the development of effective cancer treatments. However, highly safe and efficient delivery of TRAIL gene remains a significant challenge, especially using cationic polymers. Here, a series of highly branched-linear poly(β-amino ester)s (H-LPAEs) are developed through a unique oligomer branching strategy. H-LPAEs exhibit a more uniform distribution of linear segments and branching units, leading to excellent DNA condensation and favorable physicochemical properties of H-LPAE/DNA polyplexes. In SW1353 and BMSC cells, the optimized H-LPAEs, H-LPAEB4−S5−TMPTA, achieves superior gene transfection efficiency of 58.0% and 33.4%, which were 2.5-fold and 2.0-fold higher than that of the leading commercial gene transfection reagent, Lipofectamine 3000. Excitingly, H-LPAEB4−S5−TMPTA mediated 56.7% and 28.1% cell apoptosis in HepG2 cells and HeLa cells highlighting its potential application in cancer gene therapy. In addition, locally administered H-LPAEB4−S5−TMPTA delivered TRAIL DNA to HepG2 xenograft tumors and inhibited tumor growth in vivo. This study not only proposes a novel strategy for synthesizing poly(β-amino ester)s with a unique branched-linear topology but also identifies a promising candidate for highly efficient TRAIL gene transfection.