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 |
|
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 |
|