I have an WiX-based installer for an agent that gets pushed out to remote machines and runs silently. On one particular machine, I got error 1704 because an installation of the .NET Framework 4.5.2 was suspended:
MSI (s) (34:E0) [11:13:38:561]: Note: 1: 1704 2: Microsoft .NET Framework 4.5.2
MSI (s) (34:E0) [11:13:38:561]: Product: [MyProduct] -- Error 1704. An installation for Microsoft .NET Framework 4.5.2 is currently suspended. You must undo the changes made by that installation to continue. Do you want to undo those changes?
My installer does nothing with the .NET Framework other than check for its existence in an install condition. But because the installer is run silently, it just continues after encountering this error, which would normally be a messagebox shown to the user. This resulted in the .NET Framework 4.5.2 being rolled back (effectively uninstalling it) and breaking all sorts of things.
Is there a way of aborting the install if error 1704 (or any particular error) is encountered?
Edit: The complete command line for MSIEXEC.exe is as follows: MSI (s) (BC:38) [17:25:21:859]: Command Line: FORCESILENTUI=1 REBOOT=ReallySuppress ALLUSERS=1 MSIRESTARTMANAGERCONTROL=Disable STAGINGPATH=C:\windows\Temp CURRENTDIRECTORY=C:\windows\system32 CLIENTUILEVEL=3 CLIENTPROCESSID=5540