How to store module configurations and functionoing based on those values

HI

I need a solution for below scenario. Please share some technical ways to achieve below scenario

I am creating a custom module which provide some functionalities using logic hooks.(Assume that an install able package has been created ).

What I need is , when I installing the module It’s should pop up a window/interface and need to select one option from the available list of option and that option should be stored in suiteCRM (1- How to store this? using database or config files). After installation success the module will work based on the option selected by the user.

How Can I do this?

Your ideas will be greatly appreciated
Thanks In Advance

Can anyone guide me on this.

You have to bundle the php scripts into the scripts directory of your package. There can be 4 scripts.

scripts/pre_install.php
scripts/post_install.php
scripts/pre_uninstall.php
scripts/post_uninstall.php