If you want to replace both the ECU and the WIN, you have to leave the original WIN installed and replace the new ECU, then program VIN.
If you are just replacing the ECU, it is as simple as writing in the new vin number. The ABS module will still keep the vehicle's original VIN, which you programed on the new ECU.