If you don't already have a db/install.php file for your plugin, then you need to create one.
See https://docs.moodle.org/dev/Upgrade_API#install.php for some basic documentation, but look for an existing install.php in another plugin for an example.
I am still confused with this. could you please tell any plugin name to take refer to solve this issue.
I want to Hide setting while plugin installation.