diff --git a/intaro.intarocrm/install/index.php b/intaro.intarocrm/install/index.php index e6884011..87366610 100755 --- a/intaro.intarocrm/install/index.php +++ b/intaro.intarocrm/install/index.php @@ -1331,7 +1331,8 @@ class intaro_intarocrm extends CModule { function DeleteFiles() { unlink($_SERVER['DOCUMENT_ROOT'] . '/bitrix/php_interface/include/catalog_export/intarocrm_run.php'); unlink($_SERVER['DOCUMENT_ROOT'] . '/bitrix/php_interface/include/catalog_export/intarocrm_setup.php'); - unlink($_SERVER['DOCUMENT_ROOT'] . '/retailcrm/'); + unlink($_SERVER['DOCUMENT_ROOT'] . '/retailcrm/agent.php'); + rmdir($_SERVER['DOCUMENT_ROOT'] . '/retailcrm/'); } function GetProfileSetupVars($iblocks, $propertiesProduct, $propertiesUnitProduct, $propertiesSKU, $propertiesUnitSKU, $filename) {