Upgrader installs upgrade correctly but says there is an error - Advanced Installer Community
jminsa
Posts: 25
Joined: Mon Oct 29, 2018 5:45 pm

Upgrader installs upgrade correctly but says there is an error

Hello,

I have implemented automatic updates using the advanced installer upgrader.

The new version is detected, downloaded and installed correctly, as far as I can see, but the upgrader reports an error.
When you launch again the upgrader, the update is detected and it tries to install it again.

I supose the upgrader leaves somewhere an error mark and while the error is not cleared will try to install the application again and again.
I am not sure what is causing the error and do not see anything wrong in the installation log.

The setup executes several powershell scripts and I am not returning anything from this scripts, I was wondering if I need to add a "return 0" to all the scripts to report the execution is correct or something like that.

Could you help me?

Thanks in advance
Jose
jminsa
Posts: 25
Joined: Mon Oct 29, 2018 5:45 pm

Re: Upgrader installs upgrade correctly but says there is an error

I have solved it.
The problem as you hint in your manual was that the upgrade detection mode was wrong.

However now when the newest version is installed the previous version is detected as an update when it should not.
jminsa
Posts: 25
Joined: Mon Oct 29, 2018 5:45 pm

Re: Upgrader installs upgrade correctly but says there is an error

Solved
I had not included the UpdateTargets information. Now is working as expected
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Upgrader installs upgrade correctly but says there is an error

Hello Jose,

Thank you for your followup on this. I am glad you sorted things out.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”