Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to provide description of update with ClickOnce?

We have an app which I've coded up and for ages now I've pushed updates to it through ClickOnce. The app sits on our main file server. But every time I push out an update I get asked what I've changed! Is there any way to provide a personalised description of an update with ClickOnce which would be user-friendly? For example, when the user launches their application, ClickOnce asks "A new version is available. Would you like to update?", below which I could have a description of what I've updated? Or is this impossible with ClickOnce?

like image 237
Strahinja Berberic Avatar asked Jun 27 '13 12:06

Strahinja Berberic


1 Answers

Here's how I do it. I call this method in my startup code, in Release mode:

using System.Deployment.Application;
...

private void DisplayChangeLog()
{
    if (!ApplicationDeployment.IsNetworkDeployed)
        return;

    if (!ApplicationDeployment.CurrentDeployment.IsFirstRun)
        return;

    ThreadPool.QueueUserWorkItem(state =>
        Execute.OnUIThread(() => <Pop up window with latest changes> ));
}

I know this isn't precisely what you want, as it displays the first time the user runs the app but after they've already installed the update. In our environment users don't have a choice whether they update or not, so it makes no real difference.

like image 109
HiredMind Avatar answered Sep 18 '22 18:09

HiredMind