Yrlec
Posts: 30
Joined: Wed Jun 20, 2012 3:49 pm

Exit code -1

Hi,
For quite some time we've been using Advanced Installer to distribute our backup software at https://degoo.com. Most of the time it works flawlessly but we have received some reports on failed installations from our users.
To get better info why some installations failed (since we haven't been able to reproduce it locally) we created a special "bootstrap" installer (using InnoSetup), which downloads the actual installer, runs it and then reports any failures to us. You can try it yourself here: https://d3t6cz01p3r2e4.cloudfront.net/P ... taller.exe.

With the help of that we put together a pie chart of the most common non-zero exit codes of the Advanced Installer exe.

As you can see, the by far most common error code is -1. We've googled this error code to find out what it means but found nothing. Any idea on what's causing this? As you can see, it has happened 1526 times in the last 4 days so we are very eager to fix this issue.
Attachments
Error-exit-codes.png
Error-exit-codes.png (68.14 KiB) Viewed 14513 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Exit code -1

Hi,

Sorry for the delayed reply, we are very busy preparing our next release (with some cool new features you guys will probably be interested in) .

From what I see your custom bootstrapper is simply downloading the MSI built by Advanced Installer and running it with basic UI. So there is no custom code from us
that could affect the installer performance and generate this return code. (if one of our custom actions would fail usually one of the return code from this list should be received)

A common cause of this type of generic error code is represented by corrupted OSes. Having a large users base, like you do, can be a guarantee that some of your users
have their machines incorrectly configured, thus leading to failed installations.

Have you been able to get a verbose log from any users reporting this error? If the log does not say anything relevant, more information can be found in the system's
Event Viewer console, looks for "MsiInstaller" events there.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Yrlec
Posts: 30
Joined: Wed Jun 20, 2012 3:49 pm

Re: Exit code -1

Thanks for the feedback. I think I've found what's causing the -1 exit code. When cancelling the installation on my local machine the InnoSetup installer got exit code -1 from the Advanced Installer exe. It's a bit odd because I thought this would cause exit code 1602 but at least that's what happened on my local machine so the assumption right now is that this is what causes the -1 on most machines. We've therefore changed it to run in silent mode (the InnoSetup exe adds /qn when calling the Advanced Installer exe) and just showing an indeterminate progress bar in the InnoSetup wizard while the Advanced installer exe is running.

However, it's still a bit odd that so many people decided to cancel the installation. The only reason I can come up with is that the installation takes a lot of time. On my machine it just takes 10s-20s but I found this video created by one of our members: https://www.youtube.com/watch?v=6J1uGLEw1PU. For him the installation takes about 7 minutes and if it takes that long then a high cancel rate is more understandable. Any idea on why it takes so much longer for him? Sure his computer is probably slow and without SSD but 7 minutes feels like an awfully long time for an installation of this size. How can we improve this? I'll gladly send you the .aip if you want to.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Exit code -1

Hi,

For the guys in the video I suspect the installation takes so long because of the download speed of his internet connection. If you look at minute 4:30 you can
see its speed indicates and average of 100kb/s, which is really slow.

My machine has a SSD too, so for me it installed in a few seconds too, but I have worked with much more complicated installers HDD equipped machines
and I can guarantee the actual installation takes much less time.

Regards,
Bogdan

P.S. Here is the new feature I mentioned we'll release that might interest you guys - Installer Analytics
Since you guys implemented your own inhouse version I would love to chat more about this when you have the time.
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Yrlec
Posts: 30
Joined: Wed Jun 20, 2012 3:49 pm

Re: Exit code -1

Sure, his download speed is slow but why does that affect the installation speed? The installer doesn't need to download anything while it's installing. He's using an older version without any analytics and without the InnoSetup bootsrap so it doesn't need to download anything.

The installer analytics feature looks really cool! 10 000 downloads is a bit too low for us but I'd love to have a chat about it.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Exit code -1

Hi,

The download speed was just a hunch but I cannot say for sure what made it install so slow without a verbose log of the installation.
(reminder to myself - an installer analytics report showing the average installation time might be useful)

There are steps in the installation that are able to slow it down considerably, like building system restore points or iterating through a very long list
of files/registry that needs to be installed (if that is the case for you).

Regarding the installer analytics, 10k downloads its our first offer, we'll surely fine tune it once we get more feedback from our users. I realized its going
to be a limit you guys will hit very easy because you said you had about 2000 installations errors in just 4 days, not counting the successful ones which I am sure are many more.

Can you write me an email at bogdan at advancedinstaller dot com so we can chat more when you have the time?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Yrlec
Posts: 30
Joined: Wed Jun 20, 2012 3:49 pm

Re: Exit code -1

I've e-mailed you now. Thanks!

Return to “Common Problems”