Here's another tidbit I'm posting simply so it can be found later! We were struggling to remove a couple custom modules from vTiger that we presumed were preventing an upgrade. They were called 'Vtiger Premium' and 'Duplicate Extension Check' which are referred to internally in vTiger as 'VTEStore' and 'DuplicateCheckMerge' respectively. After merging info from a couple other posts we came up with the following:
Create a php file in the vTiger home directory named RemoveModule.php, insert the following (change VTEStore to DuplicateCheckMerge or whatever other module you want to delete and run again):
<?php
include_once 'vtlib/Vtiger/Module.php';
$Vtiger_Utils_Log = true;
$module = vtiger_module::getInstance('VTEStore');
if ($module) $module->delete();
?>
Now browse to vtiger.IP.address/vtigercrm/RemoveModule.php and you should see the following info scroll across an otherwise blank screen:
deleting sharing access ... done
deleting tools ... done
deleting fields of the module ... done
deleting blocks for module ... done
In our case we also had to modify the SQL database and remove references to the 2 modules in table vtiger_settings_field.