flycast
Posts: 24
Joined: Thu Jul 25, 2019 10:31 pm

Adding a "Check for updates" to my app?

I have learned how to set up the newest installer at a URL. I want my app to check every x minutes while the app is running. I also want to add a "Check for updates" menu option in my app. I know how to add the menu option, what I don't know is what to do to trigger the built in auto updater to actually check for the update.
flycast
Posts: 24
Joined: Thu Jul 25, 2019 10:31 pm

Re: Adding a "Check for updates" to my app?

I *did* find where the installer packages the updater.exe with the app and have determined how to execute it:

Code: Select all

string updaterPath = Directory.GetCurrentDirectory() + @"\updater.exe";
if (File.Exists(updaterPath))
      Process.Start(updaterPath + " /checknow");
}

Catalin
Posts: 6585
Joined: Wed Jun 13, 2018 7:49 am

Re: Adding a "Check for updates" to my app?

Hello Eric,

Thank you for your followup on this and for sharing your solution with us.

I am sure this will be of help for further users facing a similar scenario.

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

Return to “Common Problems”