You can install VMware Tools in a vApp template when guest customization is disabled.

Prerequisites

Guest customization is disabled on the virtual machine Properties page.