Check if update is in process

Add-in Express™ Support Service
That's what is more important than anything else

Check if update is in process
Kiru Marimuthu

Posts: 38
Joined: 2017-07-20

I have been using the following approach to start auto update installer.

if (addinModule.IsMSINetworkDeployed() && addinModule.IsMSIUpdatable())
	string updatePath = addinModule.CheckForMSIUpdates();
	if (!string.IsNullOrEmpty(updatePath))

But it fails sometimes if the updates are in progress or if the user has done multiple clicks. How do I check if the updates are in progress already and avoid calling addinModule.LaunchMSIUpdates(updatePath) again.

Posted 04 Oct, 2018 09:01:45 Top
Andrei Smolin

Add-in Express team

Posts: 16725
Joined: 2006-05-11
Hello Kiru,

You can disable the button once you call LaunchMSIUpdates() and enable it at the next add-in start. Note that if the update is running, you'll find the downloader in the list of processes.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 08 Oct, 2018 05:34:11 Top