How to define config.xml file when building

During development process, how can I change the code so that when I build and run the exe file in Windows, it can generate the config I want to set automatically in config.xml file.