Can end user upload new firmware easilly?

Hello fellow programmers!
I am loking for a solution: How to let the end user of project made from arduino update the firmware?

My vision is that user will connect arduino board with usb programmer, and run simple bat file/exe file. This program should upload new prebuild code into that board. (the prebuild code will be send by email od can be downbloaded from webpage). I am looking for a lightweight solution that can be used without any framework installation on client side.

Is it somehow possible? (hint is enought for me, I can selfstudy the solution, if there are any materials for it.

Any help appriciated.

The Arduino IDE pretty much does this behind the scenes. There is a verbose setting in preferences that shows you all the commands. I can't think of any reason why you could not write another program to execute the same process.

...R

Avrdude can be used without the IDE and can be run from batch files.

Thank you veru much for the answers! I've looked into he verbose build detail and that will be the way!

I think MrBurnette here in the forum has posted such a script.
Not sure how one would search for it tho.