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:
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
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();
}
Jaime