I tried to get this to work a couple of times and gave up. I was trying to rebind a mouse button (back) to a macro and just gave up after a while. I ended up using the G Hub on a Mac and applying settings to the onboard config. I like the idea of Solaar, but the initial learning curve was more effort than I wanted to put in to rebind a single key.
If the button already has a function (like back) assigned to it, I think the input-remapper[0] software would work. That is what I use with my deathadder.