(if compressed):

Most modern package managers support pre- and post-installation scripts.