nvsoft
Posts: 19
Joined: Sat Feb 12, 2011 9:34 am

Creating mandatory updates

Hi,

I'd like to include the AI updater agent with my application and use it to check/install updates during app start up.
However, I could not find a way to show the user the updates and their description and then force installation of certain updates.

My desired scenario is as follows:
1) The main application calls updater to check for updates.
2) in case new updates exist, the application closes and and a dialog is shown to the user with a list of available updates but do not allow the user to uncheck them (check and disable their checkboxes).
3) the user presses "next", the updates are installed and the application is started again.

I'm aware of the /silentcritical command switch but it doesn't suite my needs as I'd like to show the user a list of available updates.
How can I achieve my desired scenario?

Thanks.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Creating mandatory updates

Hi,
I'd like to include the AI updater agent with my application and use it to check/install updates during app start up.
To achieve this you can follow our user guide article.
in case new updates exist, the application closes and and a dialog is shown to the user with a list of available updates but do not allow the user to uncheck them (check and disable their checkboxes).
You can use the /silentall option to achieve this. For more information you can follow this article from our user guide.
the user presses "next", the updates are installed and the application is started again.
You can configure this from your updates configuration project -> Updates Page -> your update -> Auto Close Applications tab. Here is its reference in our user guide.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nvsoft
Posts: 19
Joined: Sat Feb 12, 2011 9:34 am

Re: Creating mandatory updates

As I said in my original post, I would like to show the user a dialog displaying all of the updates about to be installed (and their descriptions).

Will the /silentall option show this dialog to the user?

I can display this dialog to the user myself and then call updater with /silentall but I could not find an interface or API to get information about the available updates.

Once again: I would like to make certain updates mandatory and not allow the user to uncheck these updates.

Thanks.
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Creating mandatory updates

Hi,
Will the /silentall option show this dialog to the user?
Yes, you will see our predefined dialog, but the update will start download and install automatically, without requiring user actions.
I can display this dialog to the user myself and then call updater with /silentall but I could not find an interface or API to get information about the available updates.
If you want to display your own custom dialog you can use the switch "/justcheck" and get the return code from the updater to see if updates are available or not. Then based on the returned code you can proceed as you wish.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”