Create a button automatically after installing .oxt file

I have created a macro and make a .oxt file. I wish that after installing the .oxt file a button should be automatically added in libreoffice writer and there should not be need to set the macro security level to medium. Also it should automatically enable regular expression. When we install extensions button is automatically created means there must be some way to do this. So please can anyone guide me.