Scaffolding for preinstall and postinstall