Setup ending prematurely despite mainenginethread successfully returning zero - Advanced Installer Community
donal1981
Posts: 2
Joined: Thu Jul 14, 2016 1:57 pm

Setup ending prematurely despite mainenginethread successfully returning zero

Hi.
Im seeing an install fail but i don't know why.
The log is reporting "MainEngineThread is returning 0" which usually means that the msi was successfully installed.
However the dialog that gets displayed at the end of the install is "Setup wizard ended prematurely"
What went wrong?
I am using version 10.9.1 of advanced installer.

Here is the last few lines of the verbose log of the installer exe.

MSI (s) (48:C4) [17:50:44:481]: MainEngineThread is returning 0
MSI (s) (48:EC) [17:50:44:481]: RESTART MANAGER: Session closed.
MSI (s) (48:EC) [17:50:44:481]: RESTART MANAGER: Session closed.
MSI (c) (2C:30) [17:58:33:216]: Back from server. Return value: 1603
MSI (c) (2C:30) [17:58:33:216]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (2C:30) [17:58:33:216]: PROPERTY CHANGE: Deleting SECONDSEQUENCE property. Its current value is '1'.
Action ended 17:58:33: ExecuteAction. Return value 3.
=== Verbose logging stopped: 2/1/2017 17:58:33 ===

Action ended 17:25:27: UpdateFeaturesInstallStates_1. Return value 1.
MSI (c) (7C:74) [17:25:27:212]: Note: 1: 2205 2: 3: AI_XmlLocator
MSI (c) (7C:74) [17:25:27:212]: Note: 1: 2228 2: 3: AI_XmlLocator 4: SELECT `Property` FROM `AI_XmlLocator`
MSI (c) (7C:B8) [17:56:47:466]: ChildUIThread wait timed out
MSI (c) (7C:74) [17:58:33:294]: Doing action: FatalError
Action 17:58:33: FatalError.
Action start 17:58:33: FatalError.
Action ended 17:59:44: FatalError. Return value 1.
MSI (c) (7C:74) [17:59:44:638]: Doing action: AI_CleanPrereq
Action 17:59:44: AI_CleanPrereq.
Action start 17:59:44: AI_CleanPrereq.
MSI (c) (7C:CC) [17:59:44:654]: Invoking remote custom action. DLL: C:\Users\ADMINI~1\AppData\Local\Temp\2\MSIE547.tmp, Entrypoint: CleanPrereq
Action ended 17:59:44: AI_CleanPrereq. Return value 1.
MSI (c) (7C:74) [17:59:44:716]: Doing action: FatalError
Action 17:59:44: FatalError.
Action start 17:59:44: FatalError.
Action ended 17:59:44: FatalError. Return value 1.
MSI (c) (7C:74) [17:59:44:716]: Doing action: AI_SHOW_LOG
Action 17:59:44: AI_SHOW_LOG.
Action start 17:59:44: AI_SHOW_LOG.
MSI (c) (7C:A0) [17:59:44:732]: Invoking remote custom action. DLL: C:\Users\ADMINI~1\AppData\Local\Temp\2\MSIE596.tmp, Entrypoint: LaunchLogFile
Action ended 17:59:44: AI_SHOW_LOG. Return value 1.
MSI (c) (7C:74) [17:59:44:826]: Doing action: FatalError
Action 17:59:44: FatalError.
Action start 17:59:44: FatalError.
Action ended 17:59:44: FatalError. Return value 1.
MSI (c) (7C:74) [17:59:44:826]: Doing action: AI_RemoveTempFiles
Action 17:59:44: AI_RemoveTempFiles.
Action start 17:59:44: AI_RemoveTempFiles.
MSI (c) (7C:20) [17:59:44:841]: Invoking remote custom action. DLL: C:\Users\ADMINI~1\AppData\Local\Temp\2\MSIE605.tmp, Entrypoint: RemoveTempFiles
MSI (c) (7C!6C) [17:59:44:857]: PROPERTY CHANGE: Adding AITEMPFILESREMOVED property. Its value is 'YES'.
Action ended 17:59:44: AI_RemoveTempFiles. Return value 1.
MSI (c) (7C:74) [17:59:44:951]: Doing action: FatalError
Action 17:59:44: FatalError.
Action start 17:59:44: FatalError.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Setup ending prematurely despite mainenginethread successfully returning zero

Hello,

I'm not sure why you encountered this behaviour.

Can you please tell us if the behaviour persists on multiple clean machines? We recommend for testing virtual machines, so they can be easily restored if something is damaged.

In order to have a better view about this, can you please send us the .AIP (project file) and the full verbose log of the installation process to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”