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:
To enable the option of restoring an application to the previous version, follow the steps outlined below:
- Right click on Project in Solution Explorer and select Properties. In Properties, select Publish tab as shown below:
- Click on Updates… button, you will see the following screen:
- Select specify a minimum required version option as shown in the above figure.
- Make sure the revision number is equal to your current version (before publishing).
- Click on OK and publish application.
- Now you can restore your application to the previous version as option is enabled as shown in the following figure:
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.
- 8th October, 2006: Initial post
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:-firstname.lastname@example.org