set up the Recovery Environment (RE)
cmd prompt

Reagentc /setreimage /path <dir_name> [/target <dir_name>] [/bootkey <scan_code>]

e.g. if winre.wim is in c:\recovery\somefolder

Reagentc /setreimage /path c:\recovery\somefolder

Also if you have the installation media copied to a hard drive - for example you can extract the installation iso to a spare partition

reagentc /setosimage

for details
reagentc /?