kreskins
Posts: 25
Joined: Tue Feb 06, 2007 11:57 pm
Location: Dearborn, MI

"Invalid updates configuration file" Error

I have viewed other posts with this information and they did not give me clear cut and dry answers.

My autoupdate feature is a part of my client application and it automatically creates the update.ini file for the client machine. Inside that file it points to my server's update location. Is points to an INI file by default,

URL=https://www.mywebserver.mycompany.com/c ... pdates.ini

but on my server, in this location sits a ".aiu" file, not a ".ini" file. When I try to run the update task I get the error:
"Invalid updates configuration file. The first line of the .INI file should be ";aiu;".
The file on the server does have ;aiu; as the first line, but it is a ".aiu" file...not a ".ini" file.

Is the following True???
the client file should read updater.ini
the server file should read updates.aiu (or whatever you named it)

what am I missing? I have not created the MIME type on my IIS 6 server for type ".ini". Is this why it continues to fail?

Thanks for any assistance.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The client updates configuration file is in standard Windows INI format. The "Updates Configuration" type of project builds this file with .aiu extension so you should use flowing URL in the "Updater" page:

Code: Select all

https://www.mywebserver.mycompany.com/client/downloads/updates/updates.aiu

In the next version of AI the default URL value in the "Updater" page will contain .aiu extension instead of .ini.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
kreskins
Posts: 25
Joined: Tue Feb 06, 2007 11:57 pm
Location: Dearborn, MI

What exactly is the "Updater" Page. I don't remember anything about a page. Do you mean I should use the following code in the client "updates configuration" file?

My server file is here "updates.aiu" :
;aiu;

[DIME103]
Name=FDIS
URL=https://www.mywebserver.mycompany.com/c ... llfile.msi
Size=224256
ReleaseDate=31/05/2007
RegistryKey=HKLM\SOFTWARE\FDIS\FDIS\Version\1.0.2
Version=1.0.2.0
Description=THIS IS WHERE THE MAIN DESCRIPTION GOES
Feature=HERE IS THE AREA IN WHICH TO NAME FEATURES
Feature1=1. XXX
Feature2=2. YYY
Feature3=3. ZZZ
Enhancement=THIS SHOULD ALLOW FOR THE FOLLOWING ENHANCEMENTS
Enhancement1=1.
Enhancement2=2.
Enhancement3=3.
BugFix=THESE BUGS WILL BE FIXED:
BugFix1=1. COCKROACHES
BugFix2=2. ANTS
BugFix3=3. FUZZY CATIPILLARS


My client updates file is here "updater.ini" :
[GENERAL]
DownloadsFolder=C:\Program Files\FDIS\updates\
AppDir=C:\Program Files\FDIS\
URL=https://www.mywebserver.mycompany.com/c ... pdates.ini
ID={B08693A1-1237-4825-BEB8-106AC9D4D1E6}


the above URL value points directly to my server file except it says .ini instead of .aiu
does this value need to point to a web page instead of the actual file? Am I missing a step somewhere, or do I have the configuration wrong?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

How you create the "updater.ini" file? To use the updater switch to "Updater" view (see the left menu or "Installation->Tools->Updater" main menu) and check the "Enable Advanced Updater" option.

Updater.ini and Updater.exe files will be automatically added in the "Files and Folders" page. You can find the "Updates URL" in the "Updater" page. This URL represents the location where your updates configuration file resides on your server. And make sure this URL is valid (you can test it in your browser).

http://www.advancedinstaller.com/user-g ... -page.html

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
kreskins
Posts: 25
Joined: Tue Feb 06, 2007 11:57 pm
Location: Dearborn, MI

Yes, I followed the How-to for clicking Tools --> Updater, then checking the "Enable Advanced Updater". Upon my client install I get both updater.exe and my updater.ini file on the Client machine just like I would expect. When I click on the shortcut to my updater.exe (with /checknow) option set, it references my client updater.ini file and give me the following error:

"Invalid updates configuration file. The first line of the .INI file should be ";aiu;".

If I paste the updater.ini URL value into a browser:
https://www.digitalimaging.dealerconnec ... pdates.ini
it fails because there is no such file.
BUT, If I change it to:
https://www.digitalimaging.dealerconnec ... pdates.aiu

The browser offers me the ability to download or save updates.aiu, so I know that the file can be seen via the browser.

Will there be problems if the website is password protected?
kreskins
Posts: 25
Joined: Tue Feb 06, 2007 11:57 pm
Location: Dearborn, MI

I tested the entire process with an update directory that is NOT password protected and was able to make it work. Do you know if there would be any way of enabling the updater.exe to handle login first, and then read the aiu file after login is successful?

Thanks for help, sorry for not mentioning this earlier :oops:
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

If your site is password protected then the Updater will automatically prompt the user for the username and password.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
kreskins
Posts: 25
Joined: Tue Feb 06, 2007 11:57 pm
Location: Dearborn, MI

no, it does not. When testing on the password protected environment, I run the updater.exe and it shows the dialog box "Checking for updates" ...please wait [cancel]. Then it just gives me the error:

"Invalid updates configuration file. The first line of the .INI file should be ";aiu;".

After it fails, I look in my client updates directory the update.aiu file consists of the code of the login page (login.cgi). I think this may be a bug, because as soon as I tested the process in a website location that is not password protected (no login process at all) it worked fine...same exact files in both locations, just a different URL value in the updater.ini file on the client. One works and one does not.

Any help here would be appreciated.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I'm sorry, was not very clear with my last post. When the Advanced Installer Updater ask for the updates.aiu file (file restricted with user/password on your server) if that user does not have access to the file you can return HTTP error codes like: 401 or 407.

When the Updater receives error codes like 401 or 407 he will prompt the user to enter the username and password required by the server.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
kreskins
Posts: 25
Joined: Tue Feb 06, 2007 11:57 pm
Location: Dearborn, MI

I do not think we are on the same page.

It is not that the updates.aiu file itself is restricted. It is a entire website...the entire website needs users to login first. You have to login to the web site, before you are authenticated to browse any of the content (which updates.aiu is part of)

Is there any way for me to successfully use the updater.exe when you MUST login to the website in order to download the file?

The login process takes place on a different server as well. If you hit my website and do not have the proper session cookie, you are bounced to our passwordlogin.com server and it runs you through the login process, and then forwards you to your original location.

It sounds like nobody has had this dilemma before
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I'm afraid that what you say is not yet supported. We shall consider to implement this for a future version of AI but I cannot give any ETA.

Until then you can use the Updater according to the instructions from my previous post.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
konda2.reddy
Posts: 2
Joined: Mon Jul 08, 2024 7:21 am

Re: "Invalid updates configuration file" Error

When I run the updater manually, I am getting below

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

Cross checked content and update URL - everything seems to be correct - I am able to download .ini file from server

When it run programmatically, I get "App version exit code -536870898" error
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: "Invalid updates configuration file" Error

Hello Reddy and welcome to our forums,

Please note that my colleague Daniel replied to your e-mail.

Posting the same problem on both email and the forum is unnecessary. Duplicate threads can result in two different team members addressing the same question, causing inefficiency.

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

Return to “Common Problems”