How to avoid that error 1704 causes issues when running an wrapper that installs multiple msis

When running a setup.exe installer (which runs a numer of msi's in the background of SQL Server Management Studio) I ran into an error 1704. I finished the current user repair of this product and I could then run the installation wrapper.
How can I avoid that this error causes issues when this package goes to production.
A reboot before and after the installation ?
Are there any other options ?