Add support for upgrade case in webinstaller