If you intend to Android 6 MM you must first merge two partitions .. So you have to install twice miui 5.12.17 multi via updater..
Then install TWRP (zip or via fastboot).
Now you can install the latest stable or developer via updater..
(For safety I would do wipe cache and dalvik)
For root...