Click here to Skip to main content
15,893,644 members
Articles / Operating Systems / Windows
Article

Restore Application to Previous State using Clickonce

Rate me:
Please Sign up or sign in to vote.
2.00/5 (4 votes)
7 Oct 2006CPOL1 min read 36.5K   14   1
This article will show you how to restore an application to its previous version using Clickonce

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)


Written By
Web Developer
India India
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

Comments and Discussions

 
GeneralMinimum required version Pin
pkonjevic3-Apr-09 8:31
pkonjevic3-Apr-09 8:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.