Programming board directly with hex file and a head file

I am developing a tool to program the m328p mcu with hex file.
But this hex requires some parameters from user. So the tool now i designed save the input parameter as a
header file(.h), and in the main scratch it includes this header file.
Then a hex file created by this main scratch.
so if i use an xloader to program the m328p with this hex file, i put the header file in this same folder,
will this read the header file?
if not, how should i do it?

If you have a HEX file your sketch is already compiled. So any header you put into the same folder will be ignored. You write about a main scratch that creates the HEX file, please define what a main scratch is.

if not, how should i do it?

You didn't tell us what exactly you're trying to achieve. Instead you told us what you think might be the best way to do it. Tell us as many details as possible about that project, the more info we get the better we may be able to help you.

so if i use an xloader to program the m328p with this hex file, i put the header file in this same folder,
will this read the header file?

No. The header file would be read by the compiler, in the process of generating the hex file. Once the hex file exists, changes to the header file are not reflected in the hex file, unless you re-run the compiler.

You could put changeable data into a separate hex file that is written to the EEPROM.

@RELAY2014 please stop using the "report to moderator" control, and address your reply to the forum

Yes, i will try this way! Thanks!

just test it. it doesn't work. Since it it compiled to hex, it won't read from the head file any more. I will use someone's reply as a hint. create another hex to
save the parameters in eeprom. and program the board's eeprom and try.
Thanks!

AWOL:
@RELAY2014 please stop using the "report to moderator" control, and address your reply to the forum

Sorry, I click "report to moderator "by mistake, i thought that means reply,haha.