Solved

.NET - Clickonce Update Application, Add "Whats New" Popup

Posted on 2013-11-15
3
503 Views
Last Modified: 2013-11-21
i have a Clickonce application. It posts to an internal server.
if there is a new version, The client applications are asked to update every time the open the program.

I need a form to open with latest changes, or whatever, ONCE after EVERY update, for EACH user

Any Suggestions?
0
Comment
Question by:Ess Kay
3 Comments
 
LVL 40

Assisted Solution

by:Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger) earned 250 total points
Comment Utility
Start the application in a Main method instead of starting it directly in a Form.

Store the current application version somewhere, either in the settings of the application, in a file, in the registry, you name it.

When the application starts, it checks its own version number against the stored number.

If they do not match, then this is an update. In such a case, show the update form with ShowDialog and store the new version number for the next run. When the user closes the update form, display the application startup form.

If the version of the application and the stored version match, then the update form has been displayed once. Simply skip it and go straight to the application startup form.
0
 
LVL 13

Accepted Solution

by:
jonnidip earned 250 total points
Comment Utility
You can use this ClickOnce method that shows you if the current deploy has just been installed (so, only on the first run of every update). I am using it to clear local cache when a new update is installed (because the previous cache can contain differences from the actual objects).
System.Deployment.Application.ApplicationDeployment.CurrentDeployment.IsFirstRun

Open in new window

You can simply check it and show your changes file if the value is "true".

Regards.
0
 
LVL 15

Author Closing Comment

by:Ess Kay
Comment Utility
johnnidip - easiest, but i dont know if it will work if there are multiple users.
james - did not provide details, but ive done something similar which worked.

I save to an xml file onClose, then load it for setting every onLoad of main form.
in the onLoad of my MAIN MDI file, i call this function




  'Whats New
    Public Sub whatsNew()
        Dim assembly__1 As Assembly = Assembly.GetExecutingAssembly()
        Dim fvi As FileVersionInfo = FileVersionInfo.GetVersionInfo(assembly__1.Location)
        Dim version As String = fvi.FileVersion
        If Me.m_Version = version Then
            'No news
        Else
            Me.m_Version = version
            'open whats new
            Dim F As New frmWhatsNew
            F.MdiParent = Me
            F.Show()
        End If
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now