I've tested recent mameui source even on my work PC.
MAMEUI does read pre defined mame.ini but when I tried to set anything it always returns to default values.
Simply run mameui without any config, enter options, default options and for example set window mode. Press OK and run any game - it starts in full screen.