I'm not sure there's a great solution. The documentation for many plugins inform the user to restart LR after installing a new version.,
Yes it seems to be a real problem. But as we are doing it automatically, we would like to avoid popup in a middle of a work to say to restart Lightroom..
I think that I will perform the update during the shutdown of Lightroom, there is a function in the sdk to do something just before the shut down of Lightroom.
What do you think?
That might work. But beware that, according to the documentation, "The LrDialogs namespace is not available in the environment of the shutdown task." So if any errors occur during the update, there won't be an easy way to report them to the user. You'd probably have to write a log file and then check for the presence of the log file when the plugin starts.
Thank you for the warning. :-)
I'll check that and see. But it should alright as I can download the new version before and then just change the old one by the new one during the update. Like that I'll minimize the possibility of errors.
I'll let you know!