Updater Issue - Advanced Installer Community
mccgre
Posts: 1
Joined: Thu Apr 05, 2012 3:18 pm

Updater Issue

I have never used updater but am trying to make it work properly. I created my package and delpoyed it. I selected the Updater and used the tutorial and clicked on the Enable Advanced Updater checkbox. I entered the proper URL string. I created a shortcut on my desktop as specified. However when I delpoy and clcik on the Check for Updates icon it does not work. I keep getting an error.

If I launch the updater from a command line and enter the path to the Updater.exe file with the /checknow switch, I still get the same error below:

Invalid or missing updates configuration file. The first line of the .INI file should be ";aiu;". It is possible the content on the server does not match the updates configuration file URL. (Not sure what I need on the server other than the txt file.

The ini file that was created during the package build did not have the ;aiu; at the beginning so I added it. This is an issue as well. However, this had no effect and I got the same error. I am simply pointing to a txt file. Below is my INI file:

;aiu;
[General]
URL=http://access.covenanttransport.com/CTI ... ileVer.txt
AppDir=C:\Program Files\Covenant Transportation Group\CTG (Sales) Remote Access\
CheckFrequency=1
CompanyName=Covenant Transportation Group
ApplicationName=CTG (Sales) Remote Access
ID={1D3E7F39-0F81-430F-A741-2C2A4421104A}
ApplicationVersion=1.0.0 CTG Dual Monitors
DownloadsFolder=C:\Users\mccgre\AppData\Roaming\Covenant Transportation Group\CTG (Sales) Remote Access\updates\

I have sent two requests to the support desk and got two emails which did nto help at all. I keep getting directed back to the the help tutorials which are useless. Any help would be appreciated.

Greg
bhawkins
Posts: 19
Joined: Thu Apr 05, 2012 3:54 pm

Re: Updater Issue

Greg,

I can try to help. Your missing a major step here. Note newbie myself ... I am just a customer.
Invalid or missing updates configuration file. The first line of the .INI file should be ";aiu;"

The ini file that was created during the package build did not have the ;aiu; at the beginning so I added it. This is an issue as well. However, this had no effect and I got the same error. I am simply pointing to a txt file.
This references the file that is created via a project type for Updates - Update option (if using 9.0.1 - New ... select Project Type = Update and then Updates Configuration. This is the file that is necessary to compare the versions that you have and what patch should be applied. This is the step that you are missing ... very important step. It occurs after you have created the patches for the different versions that you have created. The end result of this project will be a text file. This is the text file that updater needs to reference to determine what patch to apply. This is the file that has the starting ;aiu; text.
Below is my INI file:

;aiu; You added this .. not appropriate to this file.. As a rule you should not have to ever modify this file manually.
[General]
URL=http://access.covenanttransport.com/CTI ... ileVer.txt
AppDir=C:\Program Files\Covenant Transportation Group\CTG (Sales) Remote Access\
CheckFrequency=1
CompanyName=Covenant Transportation Group
ApplicationName=CTG (Sales) Remote Access
ID={1D3E7F39-0F81-430F-A741-2C2A4421104A}
ApplicationVersion=1.0.0 CTG Dual Monitors
DownloadsFolder=C:\Users\mccgre\AppData\Roaming\Covenant Transportation Group\CTG (Sales) Remote Access\updates\

The file here is the file that is to be on the location that the Updater.exe is going to look to. This is a configuration file that tells Updater.exe where to look for the txt file to explain what the versions are and how the patch is to be applied.

This file is created by Advanced Installer as part of the setup if you have decided to include Updates. This file does NOT start with ;aiu; ... you should not normally modify this file at all.

The last line references the Updater.txt file that you will create in the Updater.aip. This last line is incorrect as it does not actually reference any real file name ... just a path.

So this tells me you have not properly defined the Updater section of the installation aip.

Best again to review the steps required for creating the patch and then configuring the patch as mentioned above.

Hope this helps ... again I am new at this ... so I know the pain as well.

Cheers,
Bruce

mods .. please delete this if it is totally out to lunch :)
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Updater Issue

Hi Greg,

Bruce's answer is correct, you need to create the separate project file that will generate the "updates.txt". Once you have the file generated by Advanced Installer
upload it on your server, thus making the URL "http://access.covenanttransport.com/CTI ... ileVer.txt" valid.

Once the file is there the updater should find it and be able to download on the user's machine for further processing.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fede071
Posts: 19
Joined: Tue May 31, 2022 11:04 pm

Re: Updater Issue

Hi,

I have a similar issue "Invalid or missing updates configuration file. The first line of the .INI file should be ";aiu;". It is possible the content on the server does not match the updates configuration file URL."

I am adding the new version of the app as well as the updates.txt to my SharePoint

My updater.ini points at the URL=https://promicron-my.sharepoint.com/:t: ... onal/path1

if I open the url ending in path1 (just as example), then I see the updater.txt file correctly:

;aiu;

[Update]
Name = Tool Control Center
ProductVersion = 1.0.3.0
URL = https://promicron-my.sharepoint.com/:u: ... onal/path2
Size = 331721808
SHA256 = B14A607061987CB9ADC164448469999211DE8708A13A18A3F1DDA48AF9FB7621
MD5 = 606aa872eae874c89b3d956b68d1eb3b
ServerFileName = TCC-1.0.3.exe
Flags = Critical
RegistryKey = HKUD\Software\pro-micron GmbH\Tool Control Center\Version
Version = 1.0.3.0
Description = Test of second update

And if I open the url in the updater.txt (the url ending in path2) then I reach the .exe correctly (see picture).
TCC_update_in_sharepoint.png
TCC_update_in_sharepoint.png (14.32 KiB) Viewed 4029 times
Am I missing a step?
Liviu
Posts: 1420
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Updater Issue

Hello,

Sorry for the delayed reply.

As I can see from your screenshot, it appears that your link is not a direct download link as it prompts you to "open" or "download" the file.

Can you please add the direct download link of the file in the Updater and try again?

For example, on our Configuring auto-updates for a Windows application video tutorial at min 3:30 you can see that we change the “0” at the end of the link with “1”. The reason for this is because:

  • this URL: .../updatesFile.txt?dl=0 is a view one, you can view the content here but it does not start the download,
  • .../updatesFile.txt?dl=1 URL starts the download and this URL is required by the Updater.
Also, please make sure you are using the .txt file created by the Updates Configuration project rather than your own manually edited file.

Please let me know if that helped.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”