I have a bootstrapper application that installs several MSI packages. However, it seems that the Windows installer does not return an error code if the installation failed. For example, the following command line test does not print “crash” if I hit “cancel”:
msiexec /i myinstaller.msi || echo failed
Given the lack of error feedback, what is the best way to detect installation failure?
<h / "> As the accepted answer suggests, the error code is actually returned. For some reason, my test case only works as expected when it is run from a batch file rather than being entered directly on the command line.
windows-installer
Wim Coenen Nov 10 '09 at 14:46 2009-11-10 14:46
source share