Setup has ended prematurely - Advanced Installer Community
prerak6962
Posts: 112
Joined: Mon Dec 08, 2014 5:26 pm

Setup has ended prematurely

Hello,

On one of my machines, the installer directly goes to the Exit Dialog after doing some actions in Progress Dialog. In the ProgressDlg I can see "Rolling back installation" before it goes to the Exit Dialog. In exit dialog I see the message [ProductName] setup has ended prematurely.

There is no error prompt telling what went wrong. On one of the other machines, the same installer works completely fine.

I tried to see the log but was unable to find out what was happening wrong in it. I have added the log file in the attached ZIP file. (In said file is too large when I directly added the log files as an attachment!)

Can you please have a look at it and let me know what exactly is the issue that is happening and what can be done to resolve it?

Thank you.
Prerak
Attachments
MSI4023.zip
(80.16 KiB) Downloaded 275 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Setup has ended prematurely

Hello Prerak,

It seems this happens because your "sqlite3odbc_x64.dll" custom action fails. Please note that when an executable file (i.e. .dll) reurns an exit code different than zero when launched through a custom action, this will be interpreted as FAILURE by Windows Installer service and thus the installation will be aborted. So, you should make sure that your custom action DLL always returns 0 when succeeds.

Also, if you want the installation NOT to be aborted and rollbacked when your custom action fails, then you can go to "Custom Actions" page and check its "Fail installation if custom action returns an error" execution option.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”