YuChan
Posts: 1
Joined: Thu Oct 05, 2023 8:24 am

Start update when i startty my program

Hello.

I use advanced installer 20 and i want know to start update when i start my program.

If version is old not allow to start my program.

I haver show shedule task but it's not good.


Please help me.
Liviu
Posts: 1048
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Start update when i startty my program

Hello and welcome to our forums,
If version is old not allow to start my program.
I'm afraid that is not possible from the Advanced Installer.

This must be done from the internal code of your application. For example, you can call the Updater.exe and check the return code. If updates are found, you can display a message and stop your application.

The Updater return code 0 means - Found updates for the application. More details on the Updater return codes article.

You can find an example in C# on the Provide C# code to integrate updater with C# application forum thread and How do I integrate the Advanced Updater with my C# application? article.

Another solution could be to silently install all updates for your application. You can refer to the article below:

How to Use Advanced Updater to Configure Auto-Updates for Your Application

Hope this helps!

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

Return to “Common Problems”