Automatically create many buttons in a toolbar. How?

Hello everyone.
I’m looking for a way to automatically create buttons in a toolbar. I have a list of .py files on my computer, and I would like the installation of these buttons to be done automatically, in a fairly simple way, for any Rhino user. I’m currently using Rhino 7.

At the moment, I create a new toolbar, then manually create a new button with text, a tooltip, and the command link. But I can’t do this for all my buttons every time I want to use these features on another workstation.

I’ve tried saving and installing a .rui and/or .tb file, but it never works properly: the toolbar is created, but no buttons are generated.

Could someone explain how to do this or help me understand what I’m missing—any tips or guidance would be appreciated. I think I understand that using RhinoScriptCompiler might help me, but I don’t know where to find it or how to install it.

Thanks in advance.

A correct .rui file will contain all the info you need for your buttons - toolbars, the buttons they contain, the images/macros/scripts in the buttons etc. If you open a .rui file in V7, you should have all that. So you only need to make everything once. If that is not happening, then there is something wrong somewhere.

If your scripts are not running on a different machine, from your above image, it might be that the path to the scripts is not the same. In that case, to guarantee that it works, you either need to have the scripts stored in a folder that is not user-dependent - i.e. it will be the same path on any computer - or, “internalize” the scripts in the button editor by having the entire script text as the macro instead of just the reference path to it externally.