hetmanjiiis
Posts: 2
Joined: Mon Aug 10, 2020 3:18 pm

Problem with Auto-Updater based on tutorial

Hi
I am using Advanced Installer Version 17.3 (2E9BB285)
I am working on preparing an Auto Updater for application in my work. I choose to use Advance Installer. I am using tutorial on YouTube: https://www.youtube.com/watch?v=6Z58cCU ... u.be&t=551
I have a problem with Auto Updater, after made all of steps from tutorial, and after installing Demo 1.0.0.0 then after click on CHeck for Updates I have popup:

Checking for Updates - Invalid or missing updates configuration file. The first line of the .INI file should be ";aiu;". Its possible that the content on the server does not match the updates configuration file URL

I checked and all files looks correct, also urls inside file are pointing to correct places.

My files:

updatesFile.txt : https://drive.google.com/file/d/1KeFyvN ... sp=sharing

updater.ini (file in installed application version 1.0)
https://drive.google.com/file/d/1Wgtd26 ... sp=sharing

App versin 2.0
Demo 2.0.0.0.exe: https://drive.google.com/file/d/19xWldX ... sp=sharing


Please help me with this issue.
I have valid all and all looks good.
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: Problem with Auto-Updater based on tutorial

Hello,

The configuration file looks indeed correct.

However, the problem here might be that your setup can not download the newer setup.

If you access the link you have provided (to GDrive), you will notice that the download does not automatically start. Instead, you have to press the "Download" button to start the download.

With that being said, could you please try the sample as it is explained in our video (i.e. using Dropbox instead of GDrive) and let me know if everything works as expected? Additionally, please note that in order to automatically download a file using a Dropbox link, you will have to replace the

Code: Select all

dl=0
with

Code: Select all

dl=1
Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SimHorizon
Posts: 44
Joined: Sun Jan 31, 2021 7:11 am
Contact: Website

Re: Problem with Auto-Updater based on tutorial

I'm having this exact same issue and "I think" my files are correct and I can navigate to my link (via browser) and the download starts immediately.

UPDATES-CONFIG-FILE.txt
;aiu;

[MyApp0.9.7]
Name = MyApp 0.9.7
Description = MyApp Update
URL = http://mywebsite.com/downloads/MyApp.exe
Size = 27908
ServerFileName = MyApp.exe
FilePath = [APPDIR]MyApp.exe
Version = 0.9.7

MyAppUpdater.ini
[General]
AppDir=C:\Program Files\My Company LLC\MyApp\
ApplicationName=MyApp
CompanyName=My Company LLC
ApplicationVersion=0.9.7
DefaultCommandLine=/checknow
CheckFrequency=2
DownloadsFolder=C:\ProgramData\My Company LLC\MyApp\updates\
Flags=PerMachine|ShowConfigOptionsButton
ID={0C20C749-8159-4525-BBB6-072C17B08425}
URL=http://mywebsite.com/downloads/UPDATES-CONFIG-FILE.txt

Unfortunately the error message returned is not very helpful in pointing me in a direction to diagnose, it misleading ... the INI file should NOT contain ";aiu;" that goes in the UPDATES-CONFIG-FILE.txt not the INI?

Thoughts?

Cheers, Rob.

EDIT: The above company and product references are generic that I replaced, but the syntax is consistent. Using my browser and entering the link to my application .exe file will immediately start a download. It's able to download and read my UPDATES-CONFIG-FILE.txt as the error message I get if I delete the file from my server is different. Is there any sort of "logging" or debug mode I can run to figure what exactly the update.exe is having a problem with?
SimHorizon
Posts: 44
Joined: Sun Jan 31, 2021 7:11 am
Contact: Website

Re: Problem with Auto-Updater based on tutorial

I was able to resolve the issue using the txt file created by Update Configuration project rather than my own manually edited file.

Cheers, Rob.
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: Problem with Auto-Updater based on tutorial

Hello Rob,

Thank you for your followup on this!

I am glad you got this working.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”