Disable plugin installation

A really simple way to disable the installation of a plugin is to set the value:

$plugin->version = 0;

In the plugin’s version.php file.