I think that both are correct. Some might point to (2) only but (1) is correct if you realize that the plugin is capable of installing itself (it carries out its own installation).
The only difference between the two sentences is the shift in Active/Passive voice.
Well, you've taught me a new word. A verb is ergative if the noun can appear as either the subject or the object (and the verb retains the same meaning) ...