Just to make sure, does the script extract all of the relevant files from the archive? There are a number of support files that are sometimes updated along with the executable, so you need to be sure to extract and copy all of them.

Sorry I'm not sure of understand what you mean, what are these support files?
By the way the script use 7za to extraxt mame, which hopefully extract all the needed stuff.
To ensure mame.ini and ui.ini are all up-to-date, instead of simply copying from some old ones, they are generated by mame itself and then entries modifies are applied once created.