5,448,104 members and growing! (16,421 online)
Email Password   helpLost your password?
Platforms, Frameworks & Libraries » .NET Framework » General     Intermediate License: The Code Project Open License (CPOL)

Restore Application to Previous State using Clickonce

By Malpani Amol

This article will show you how to restore an application to its previous version using Clickonce
Windows, .NET, Visual Studio, Dev

Posted: 7 Oct 2006
Updated: 7 Oct 2006
Views: 7,451
Bookmarked: 10 times
Announcements
Want a new Job?



Search    
Advanced Search
Sitemap
4 votes for this Article.
Popularity: 1.20 Rating: 2.00 out of 5
1 vote, 25.0%
1
2 votes, 50.0%
2
0 votes, 0.0%
3
1 vote, 25.0%
4
0 votes, 0.0%
5

Introduction

Here is some cool stuff to recover a Windows application to its previous version using "ClickOnce".

Remember whenever ClickOnce applications are installed as offline, an entry is added to the Add and Remove Programs. Whenever you click on Change/Remove in addition to letting the user uninstall the application, it also allows the user to roll back to previous versions of the application. ClickOnce retains one past version of the application for the user to revert to in this way, but the option of restoring an application to the previous state is disabled by default as shown in the following figure:

Sample screenshot

To enable the option of restoring an application to the previous version, follow the steps outlined below:

  1. Right click on Project in Solution Explorer and select Properties. In Properties, select Publish tab as shown below:

Sample screenshot

  1. Click on Updates… button, you will see the following screen:

Sample screenshot

  1. Select specify a minimum required version option as shown in the above figure.
  2. Make sure the revision number is equal to your current version (before publishing).
  3. Click on OK and publish application.
  4. Now you can restore your application to the previous version as option is enabled as shown in the following figure:

Sample screenshot

MinimumRequiredVersion - specifies the minimum version of this application that can run on the client. If the version number of the application is less than the version number supplied in the deployment manifest, the application will not run.

History

  • 8th October, 2006: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Malpani Amol


I am a .NET developer cum designer. I work for Zensar Technologies Ltd. Pune (INDIA), I consult, I develop, I debug and besides that I speak at conferences and user groups and I also write. I have written some articles on WCF, WF, SSIS, Compression decompression, CLR Store Procedure, SQL Server Reporting Services 2005, Extended grid and lot more to count.
Reach to me on:-a.malpani@zensar.com

Occupation: Web Developer
Location: India India

Other popular .NET Framework articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
  (Refresh) 
Subject  Author Date 
-- There are no messages in this forum --

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 7 Oct 2006
Editor: Deeksha Shenoy
Copyright 2006 by Malpani Amol
Everything else Copyright © CodeProject, 1999-2008
Web15 | Advertise on the Code Project