msi install fails with "MainEngineThread is returning 2"

UniqueFu12! 1 Reputation point
2022-11-01T19:00:56.63+00:00

msi install fails with "MainEngineThread is returning 2". Below is the log:

=== Verbose logging started: 11/4/2022 0:16:10 Build type: SHIP UNICODE 5.00.10011.00 Calling process: C:\Windows\SysWOW64\msiexec.exe ===
MSI (c) (5C:D4) [00:16:10:246]: Resetting cached policy values
MSI (c) (5C:D4) [00:16:10:246]: Machine policy value 'Debug' is 0
MSI (c) (5C:D4) [00:16:10:246]: ******* RunEngine:
******* Product: C:\MyInstall\MyConfig\Config1.msi
******* Action:
******* CommandLine: **********
MSI (c) (5C:D4) [00:16:10:247]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (5C:D4) [00:16:10:247]: Grabbed execution mutex.
MSI (c) (5C:D4) [00:16:10:251]: Cloaking enabled.
MSI (c) (5C:D4) [00:16:10:251]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (5C:D4) [00:16:10:253]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (18:D4) [00:16:10:267]: Running installation inside multi-package transaction C:\MyInstall\MyConfig\Config1.msi
MSI (s) (18:D4) [00:16:10:267]: Grabbed execution mutex.
MSI (s) (18:78) [00:16:10:268]: Resetting cached policy values
MSI (s) (18:78) [00:16:10:268]: Machine policy value 'Debug' is 0
MSI (s) (18:78) [00:16:10:268]: ******* RunEngine:
******* Product: C:\MyInstall\MyConfig\Config1.msi
******* Action:
******* CommandLine: **********
MSI (s) (18:78) [00:16:10:269]: Note: 1: 2203 2: C:\MyInstall\MyConfig\Config1.msi 3: -2147287038
MSI (s) (18:78) [00:16:10:269]: MainEngineThread is returning 2
MSI (s) (18:D4) [00:16:10:269]: User policy value 'DisableRollback' is 0
MSI (s) (18:D4) [00:16:10:269]: Machine policy value 'DisableRollback' is 0
MSI (s) (18:D4) [00:16:10:269]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (18:D4) [00:16:10:270]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (18:D4) [00:16:10:270]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (18:D4) [00:16:10:270]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (5C:D4) [00:16:10:271]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (5C:D4) [00:16:10:271]: MainEngineThread is returning 2
=== Verbose logging stopped: 11/4/2022 0:16:10 ===

Comparing with a successful install:
MSI (s) (D8:60) [07:43:20:904]: Note: 1: 2203 2: C:\Windows\Installer\inprogressinstallinfo.ipi 3: -2147287038

Is that because the database inprogressinstallinfo.ipi collapses?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,757 questions
{count} votes