I was trying to run an MSI I had built with Visual Studio 2010 to install an .asmx web service on my Windows 7 x64 machine, but it immediately halted with the error message
The installer was interrupted before Application could be installed. You need to restart the installer to try again. Click "Close" to exit.
A google search result suggested I try getting details on the error using this:
msiexec /i myapp.msi /l*vx SomeFilename.log
and indeed I got the following info in the generated log file:
INFO : [07/11/2014 10:41:42:409] [SetTARGETSITE ]: Custom Action is starting...
INFO : [07/11/2014 10:41:42:409] [SetTARGETSITE ]: CoInitializeEx - COM initialization Apartment Threaded...
ERROR : [07/11/2014 10:41:42:429] [SetTARGETSITE ]: FAILED: -2147023838
ERROR : [07/11/2014 10:41:42:429] [SetTARGETSITE ]: Custom Action failed with code: '1058'
INFO : [07/11/2014 10:41:42:429] [SetTARGETSITE ]: Custom Action completed with return code: '1058'
That error number -2147023838 is also 0x80070422; it and error code 1508 also turned up a page which said the error indicated a required service was disabled. Indeed, for some inscrutable reason, the "IIS Admin Service" was disabled. I set it to manual, and then the MSI ran fine.