How to Upgrade Manually Installed Community Extension via Magento Connect

ee-1.12magento-communitymagento-connect

Is this possible? I have Listrak_Remarketing already installed in an instance, but it does not show up under "Magento Existing Extensions" under System -> Magento Connect Manager. So, I'm assuming this was manually installed.

I tried upgrading this extension via Magento Connect, but it does not allow it because it's checking for existing files, and there are existing files.

Update 1: For reference, this is the error

Checking dependencies of packages

CONNECT ERROR: Package 'Listrak_Remarketing' is invalid
'./app/code/community/Listrak/Remarketing/Block/Adminhtml/Abandonedcartreport/Grid.php' already exists

Update 2: I found a site that lets you download the extension given the link obtained from Magento. Answer is below.

Update 3: Also, it looks like you may have a compressed extension file downloaded after all here even if it fails to install via Connect –> downloader/.cache/.

Best Answer

No, you can't. Magento Connect will refuse to install a package if any of the packages files already exist on the system. While to you it seems like this extension is installed, since it was installed manually Magento Connect is unaware of it, and therefore can't upgrade it. This is a (reasonable) precaution to ensure to package manager doesn't remove files on your system that may be coincidentally in the same place as another extension's files.

If you want to manage this extension via connect, you'll need to

  • Look at the connect package to see which files (and directories) make up the extension, and remove any from your system

  • Or, attempt to remove the files (and directories) one by one as the connect package manager finds them and complains

  • Once that's done, install the package via connect

Backup your system before doing this and/or be ready for this to possibly fail in some weird, subtle way.

Related Topic