It turns out that the required name is not listed in the documentation. The following gets the expected result:
installer.setMessageBoxAutomaticAnswer("installationErrorWithCancel", QMessageBox.Ignore);I discovered this by inspecting the source and knowing how it works I see that the clue for this is this line in the log:
installationErrorWithCancel : Installer Error : Error during installation process (com.microsoft.vcredist):