application/Espo/Core/Upgrades/Actions/Extension/Install.php
protected function compareVersion()
    {
        $manifest = $this->getManifest();
        $extensionEntity = $this->getExtensionEntity();

        if (isset($extensionEntity)) {
            $comparedVersion = version_compare($manifest['version'], $extensionEntity->get('version'), '>=');
            if ($comparedVersion <= 0) {
                $this->throwErrorAndRemovePackage('You cannot install an older version of this extension.');
            }
        }
    }
protected function compareVersion()
    {
        $manifest = $this->getManifest();
        $extensionEntity = $this->getExtensionEntity();

        if (isset($extensionEntity)) {
            $comparedVersion = version_compare($manifest['version'], $extensionEntity->get('version'), '>=');
            if ($comparedVersion <= 0) {
                $this->throwErrorAndRemovePackage('You cannot install an older version of this extension.');
            }
        }
    }
protected function compareVersion ( ) { $ manifest = $ this -> getManifest ( ) ; $ extensionEntity = $ this -> getExtensionEntity ( ) ; if ( isset ( $ extensionEntity ) ) { $ comparedVersion = version_compare ( $ manifest [ 'version' ] , $ extensionEntity -> get ( 'version' ) , '>=' ) ; if ( $ comparedVersion <= 0 ) { $ this -> throwErrorAndRemovePackage ( 'You cannot install an older version of this extension.' ) ; } } }
Compare version between installed and a new extensions

@return void
Compare version between installed and a new extensions