Externally programming an SPI Flash
I second what brhans wrote. Having a header to program in-circuit after assembly is the ideal solution. Programming machines exist that take the chips out of packaging, program and then repack... however such a setup maybe an overkill unless you are producing in very large quantities. Some distributors provide programming as an additional service, you send the files and they dump it using similar setup.