update pre-install script