How to build an upgrade package