Auto Updater always up to date - 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!

scotty g
Posts: 7
Joined: Thu Jul 09, 2009 3:30 pm

Auto Updater always up to date

It seems that no matter what I do, although the update check happens, it always thinks my application is up to date. I do a checknow at startup for my test application. Here are my config files:

updater.ini

Code: Select all

[General]
URL=http://api.lobbyguard.com/updatetest/UpdateConfiguration.txt
ApplicationName=AutoUpdateTest
ID={F58CA69E-00D2-4EC3-AC2C-4EF69120870D}
DownloadsFolder=C:\Users\scott.greenough\AppData\Roaming\LGS\AutoUpdateTest\updates\
AppDir=C:\Program Files\LGS\AutoUpdateTest\
CheckFrequency=1
CompanyName=LGS
UpdateConfiguration.txt

Code: Select all

;aiu;

[Update]
Name=Version Checker Test
URL=http://api.lobbyguard.com/updatetest/AutoUpdateTest.msi
Size=192000
MD5=6f35308447da3029fd630dbe8f43fc6e
Flags=SilentInstall
FilePath=[APPDIR]AutoUpdaterTest.exe
Version=1.0.0
Anybody got any ideas or can point me in the right direction?

Thanks,
Scott
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Auto Updater always up to date

Scott

Did you by chance manually configure the UpdateConfiguration.txt.

There doesn't appear to be any acheck to see if it could / should be downloaded (ie a version number check). If you did this manually try following the update tutorial from the help file. You'll see then that the updates text file gets built automatically for you.

Now if it transpires that you did not build this manually then I would suggest that you create a new updates configuration project and go through it section by section becuase it looks to me as if you missed something out.

Dom
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Auto Updater always up to date

Hi,

Please note that each update uses a detection criteria specified in the "Installed Detection" section of the Update properties pane in the updates configuration project. This criteria is used to determine if the update is installed or not. Most likely the criteria used by your update is incorrect and the Updater sees it as installed.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
scotty g
Posts: 7
Joined: Thu Jul 09, 2009 3:30 pm

Re: Auto Updater always up to date

ok, I followd both pieces of advice and got a little further. Thank you!

However, I'm getting the "wrong file size" error. I then copied the URL into IE and it downloaded correctly. What could be going on here? Again, here are my files.

updater.ini

Code: Select all

[General]
URL=http://api.lobbyguard.com/updatetest/UpdateConfiguration.txt
ApplicationName=AutoUpdateTest
ID={F58CA69E-00D2-4EC3-AC2C-4EF69120870D}
DownloadsFolder=C:\Users\scott.greenough\AppData\Roaming\LGS\AutoUpdateTest\updates\
AppDir=C:\Program Files\LGS\AutoUpdateTest\
CheckFrequency=1
CompanyName=LGS
UpdateConfiguration.txt

Code: Select all

;aiu;

[Update]
Name=Version Checker Test
URL=http://api.lobbyguard.com/updatetest/AutoUpdate.msi
Size=302080
MD5=178602334dc76e1395fe372074c64274
Flags=SilentInstall
FilePath=[APPDIR]AutoUpdaterTest.exe
Version=2.0.0
Thanks again
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Auto Updater always up to date

Scott

A wrong file size error generally suggests that the url you have in the updates text file is incorrect. The first thing I would suggest that you do is manually enter the url to your update in your browser (if you get the download file prompt you know that bit's correct). With that verified check what you have in the address bar of the browser with the url listed in your updateconfiguration.txt file. If they dont match then replace the url in the txt file with that from your browser. That should then work.

The other possibility is that the file you want to download really is the wrong size. that would suggest that you referenced the wrong one when you were building your update project or you uploaded the wrong update file to your server (it would be the first time that I've done that!!).

My monies on an incorrect url in your text file.

Dom
scotty g
Posts: 7
Joined: Thu Jul 09, 2009 3:30 pm

Re: Auto Updater always up to date

Dom,

Thanks for the reply. I believe I mentioned, forgive me if I hadn't, in my post that I actually copied the URL from the UpdateConfiguration.txt, stuck it in the browser and it downloaded fine.

I also made sure that the files were the same size and, unfortunately, they were.

I'm at a loss here...any more suggestions?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Auto Updater always up to date

Hi,

Usually the wrong file size error is shown when the URL or the size of the update is incorrect. Since you already verified them, perhaps the problem is caused by something else. Try deleting the updates download folder ("C:\Users\scott.greenough\AppData\Roaming\LGS\AutoUpdateTest\updates") before updating. Also, when you receive this error go to the updates download folder and see what file was downloaded. You can try opening the file with notepad to see if it's a HTML file with an error.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
scotty g
Posts: 7
Joined: Thu Jul 09, 2009 3:30 pm

Re: Auto Updater always up to date

thanks again...

I deleted the folder and ran the application. The only file that was downloaded was UpdateConfiguration.aiu

does that give you any lead into the issue?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Auto Updater always up to date

Hi,

Most likely the problem is caused by the size of the package. Please try this:
- open the updates configuration project and select the update
- in the "Properties" tab use the "..." button in the "Expected Value" field to browse the update on your server
- save and build the project
- place the resulted file on your server, replacing the original one

If the behavior is the same after these steps perhaps the URL of the update is incorrect. If you verify the size and the URL again and the problem persists, please send us the original package, the update and the updates configuration file to support at advancedinstaller dot com so we can investigate them. If their size is too large, please provide an URL from where we can download them.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

Re: Auto Updater always up to date

I ran into the "wrong file size error" issue tonight. Turns out my problem was in my update project -> Properties -> Download URL: I have specified a URL to my update file here (update.txt) and not a URL to my update.msp file.

Return to “Common Problems”