Loop for uninstalling products from a Publisher

Good afternoon,

I am running into an issue with an uninstaller from a manufacturer that doesn’t fully uninstall the products. Right now we have it scripted to run the uninstaller 3 times back to back to confirm everything is uninstalled. Since they don’t provide us a uninstall order this is our only resort. Is there a way that I can script a loop to allow me to run the uninstaller then query to see if any applications from that publisher still exist on the machine. If it does it runs again and if not it continues with the installation.