A module is considered as installed once it resides in one of the moduleAutoloadPaths. By default non core modules reside in @humhub/protected/modules.
You can install modules either by adding them manually to an autoload path or by loading them from the marketplace.