SimCity (2013) installation script not working

I guess it is only caused by the application change (Origin > EA App). But sadly I have no such clue how to fix this. Could someone review/fix it please?