[+] generate config function

[+] after install action