I know this stuff gets confusing, so let me try and straighten somethings out:
Mame32 aka Mameui, does not have a front end, it just has a graphical user interface into it. There is virtually no difference,(and when I say virtually no, I really mean none at all) The original MAME was dos based and everything had to be run from the command line, Mame32 and later MAMEUI were simple graphical interfaces that allow MAME to be used with a graphical interface rather than through the command line.
True front ends, like MALA, Gameex, Hyperspin, etc. are much more than a user interface, they are stand alone programs. They execute programs through command lines. You can use Mame32/Mameui through a command line, so it should work. Mame32 or MAMEUI should work with hyperspin, as far as I know.
If you want MAME by itself, without the GUI, then the link I sent you has the old versions of mame for download. Just download the .81 binary and you should be good to go.
But, if you want light guns, you need to get a newer version of Mame, because lightgun support was not added until v 1.32 or something like that, so lightguns won't work in your current version of Mame.
IF you want the latest stuff, the easiest way would be to get mame 141 and the 141 romset. The romset is all of the roms for that version of MAME. When a new version of MAME comes out, complete romsets are usually released with them. As far as I know there is no easy way to tell what romset your current rom belongs to. Its not like you are going to find a rom that says "gamo-fantastico mame version 1.3 or something like that. That is because not all the roms change. Some roms have never changed, some have changed 3 or 4 times. The only way that I know of to find out if your ROM is compatible with your mame version is to use CLR Mame Pro. That program will scan your roms and tell you which ones aren't working and what files you are missing, you could then go and download the missing roms or files.
Really you have a few options, but I'll just keep it simple:
Go to a reputable source and get the complete mame .141. romset.