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


Guest


Hi

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))
	{
		addinModule.LaunchMSIUpdates(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.

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


Add-in Express team


Posts: 18816
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.


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