jstuardo
Posts: 87
Joined: Mon Nov 09, 2015 10:44 pm

Error in Updater

Hello,

I have followed instructions from this site: https://www.advancedinstaller.com/user- ... dater.html

However, when I install the application and then run it, this error appears:
Updater Error.png
Updater Error.png (5.76 KiB) Viewed 14224 times
If I see the updater.ini file, this is the content:

Code: Select all

[General]
AppDir=C:\Program Files (x86)\ExampleLimitada\ExampleEncoder\
CheckFrequency=2
CompanyName=Example Limitada
ApplicationName=ExampleEncoder
Flags=PerMachine|ShowConfigOptionsButton
ID={6D1BFA68-91C8-475E-896E-A1CA375FA09B}
ApplicationVersion=1.0.0
DefaultCommandLine=/checknow
DownloadsFolder=C:\ProgramData\Example Limitada\ExampleEncoder\updates\
URL=https://www.example.com/files/apps/windows/ExampleEncoder\updates.txt
what is wrong with this?

to run the updater, this code runs when the app is launched (in C#)

Code: Select all

        private void RunAutoUpdater(string arguments)
        {
            ProcessStartInfo startInfo = new ProcessStartInfo(Path.Combine(Application.StartupPath, "updater.exe"), arguments);

            Process updater = new Process
            {
                StartInfo = startInfo
            };
            updater.Start();
            updater.WaitForExit();
        }
Thanks
Jaime
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error in Updater

Hello Jaime,

This may happen if the updates configuration file hosted onyour web server is missing or it is corrupted (e.g. invalid content - just make sure you build it using Advanced Installer).

The URL of your updates configuration file (the Updater points to) seems to be this one:

Code: Select all

URL=https://www.example.com/files/apps/windows/ExampleEncoder\updates.txt
Is this the URL of your updates config file hosted on your web browser? If so, could you please open this URL in your web browser and let us know what it is the content displayed?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jstuardo
Posts: 87
Joined: Mon Nov 09, 2015 10:44 pm

Re: Error in Updater

Hello Daniel, of course that file is currently missing. According to the documentation, this is said:

"You will create this file when the first update will be released. For now, just input the location.".

This is the first release of the application, this is not an update, so, that TXT file is not created yet.

Regards
Jaime
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error in Updater

Hi Jaime,

Understood. To avoid this corner case issue please just create the updates configuration project and build the updates configuration file using the current version of your setup. Then host it on your updates web sever.

In this way you will get ab application is up to date message when checking for updates and there is no newer version available.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”