You should start new topic for new questions. Easier for users to search later.
python script that runs after install can be used?
refer erpnext code for after_install hook:
after_install