sounds like a lot of song and dance just to get a game running. There is a reason mameUI isn't officially supported anymore and I can't for the life of me figure out why people still wanna use that.
You checked out official MAME with QMC2 or GameEX Front End?