Problem with Auto Updater - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

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

Problem with Auto Updater

Hi,
I'm running into some problems with the auto updater. I get the following error message when trying to update from version 0.4.0 to 0.4.1.

Image

I have two questions regarding this:
  • Why is it trying to read from that path?
  • Why is the path it is trying to read a mix of 0.4.0 and 0.4.1 (the directory has 0.4.1. in the path but the file has 0.4.0)?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Problem with Auto Updater

Hi,

In order for me to give you exact answers to your questions I need a little more info first. Can you please tell me how do you call the updater? Also, have you tested the upgraded package first manually, outside the auto updater?

Normally, the updater downloads the setup package in the "Downloads Folder" you've specified in Updater page and launches from there the setup packages specified in the "Updates Configuration" project.

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

Re: Problem with Auto Updater

Sorry, I should have included that info in my first post. I called the updater this way:

C:\ProgramData\Degoo>"DegooUpdater.exe" /install "console" "C:\Windows\TEMP\1253f6f730c752fff2a3364a5c60d779\DegooUpdater.ini"

I got this command-line from Process Explorer, by looking at how it was executed when I ran the updater the way we discussed here: http://www.advancedinstaller.com/forums ... hp?t=21220 . I.e. I first executed this: DegooUpdater /checknow -url http://downloads.degoo.com/Development/updates.txt and then noticed that the updater executed the command-line above (but with the "silent" modifier instead of "console"). Since it failed with that I tried it again with the "console" modifier specified, to get more info about what went wrong.

I didn't do any manual upgrading before this.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Problem with Auto Updater

Hi,
I got this command-line from Process Explorer, by looking at how it was executed when I ran the updater
Please note that this is not recommended, you should launch the updater only with the command line switches we have documented, our internal methods of handling the updates should not be used.

Using the switches we have documented the updater handles automatically the download of the updates text file, its parsing and also the download of the new version, if required.

Using any other switches, not documented by us, can result in obtaining unexpected results.

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

Re: Problem with Auto Updater

Hi,
I understand that but I only did it because I wanted to know what went wrong when I ran the updater by executing DegooUpdater /checknow -url http://downloads.degoo.com/Development/updates.txt. I did this in an effort to debug what was going wrong (because I could find any output from it). I don't plan to run it like this in production.

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

Re: Problem with Auto Updater

I have now tried it with a more standard approach and I still get the same error message. For instance, this command-line will produce the same results:
DegooUpdater /silentall -nofreqcheck -url "http://downloads.degoo.com/Development/updates.txt"
Yrlec
Posts: 30
Joined: Wed Jun 20, 2012 3:49 pm

Re: Problem with Auto Updater

I have found some more info on this issue. It only occurs if I create the new version as a patch (by pressing "Patch" instead of "Major Upgrade" when changing the version number). Whether I mark it as a patch in the updates-file doesn't matter though.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Problem with Auto Updater

Hi,

First of all, if you don't plan to create a patch, i.e. MSP file, don't select the option "Patch" when increasing the version number.

The problem seems to be related to the configuration of your setup package, not of the updates project. Something like a shared extraction path maybe, can't say for sure. Can you please send me the aip files for the last two versions of your application so I can analyze them, when they generate the error of course?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”