installer: Implement option to run a postinstall script in the installer