well there they explain it superbly and it has nothing to install a custom rom, the custom rom comes in zip format, you have to copy it to the phone memory, make wipes and leave the xiaomi without operating system and then you install the custom rom, there are many videos in Youtube