add preinstall rule