Rewrite installation mechanism.