The best way to install or upgrade an add-in is to use the following:
Admin control panel -> Add-ons -> Add-ons
The first time you try using this it will ask you to add the following to your config.php file.
$config['enableAddOnArchiveInstaller'] = true;