add global installs to preinstall hook