I have created a custom module which I am trying to install but it shows me cancel installation button after I try to install it.
This issue is not seen in any other custom modules or other modules. But installation is not working for my module.
"Cancel Installation" button could be visible on these situations.
- Another module is being installed.
- Whenever the server restarts.
According to your query i guess that the cause of your issue might be ‘Circular Dependency’.
Please re-check your
'depends' :  inside