Hello Kietvta,
To configure a script using installer properties(e.g. public properties attached to UI controls), you can follow this article:
How to use a custom property in a SQL script?
Also, you can find related step by step tutorials here:
Using SQL Databases tutorials
All the best,
Mihai