Overhauled manual package installation (backport from WCF 2.1)