Improved the dialog boxes and the return value of installPackage()