Developers can create a µVision project for downloading a HEX file to Flash. Such a project can be used within a batch file for automated Flash programming. Follow these steps to create the project file:
- Create a µVision project through the menu Project — New Project.
 - Select the microcontroller from the Device Database, but do not copy any startup code to this project.
 - Enter the HEX file name into the field Project — Options for Target — Output — Name of Executable.
 - Setup the download utility as described in Flash Download Configuration.
 
http://www.keil.com/support/man/docs/uv4/uv4_fl_hexdownload.htm