Steps to reproduce the issue
I have adapted a small component from J3 to j4 which is only for backend.
The manifest file is the same as in J3 (except version number and namspace).
Expected result
The component is only installed in administrator/components as it is in J3.
Actual result
After the installation, there is an empty folder in components (frontend).
System information (as much as possible)
Additional comments
<extension type="component" version="4.0" method="upgrade">
<name>com_mycomment</name>
....
<version>2.0.1</version>
<description>COM_MYCOMMENT_XML_DESCRIPTION</description>
<namespace path="src">mysoftware\Component\mycomment</namespace>
<install>
<sql>
<file charset="utf8" driver="mysql">sql/install.mysql.sql</file>
</sql>
</install>
<update>
<schemas>
<schemapath type="mysql">sql/updates/mysql</schemapath>
</schemas>
</update>
<administration>
<menu>com_mycomment</menu>
<files folder="admin">
<folder>forms</folder>
<folder>services</folder>
<folder>language</folder>
<folder>src</folder>
<folder>sql</folder>
<folder>tmpl</folder>
<filename>access.xml</filename>
<filename>config.xml</filename>
<filename>mycomment.xml</filename>
</files>
</administration>
</extension>
Would be good to see the manifest file, e.g. in a code snippet here.