You must use and external programmer as admin sayd, i use vvdi prog, its working very well(for me 100% successful on 5m48h, i did about 15 by now). On dme you must open up the ecu, for mevd in 740i is simple to open it and to read it, is a little bit harder to take it off the car. I can help you with extraction isn from donor cas, but for writing it in original cas you can ask admin(check if original cas has ews5 active or not, for 2011 im almost sure that ews is not active). For dme is simple after you open it, with autohex bootmode.
P.s do not forget to reset egs ews while the cas and egs is on the car...