Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Question: How do you roll back a version in click once
 

Question: How do you roll back a version in click once

I have a click once application that has three different Servers. Dev, QA, and Prod.

Dev is where we do some basic testing
QA is where we do acceptance testing
Prod is where the users use the app

I have it worked out so I can build my click once application to an MSI which gets installed to the servers . I don't deploy directly to production as I need to test my app before installing to production. My click once app is an online app. The user has to run it from the URL, it doesn't get installed to the start menu.

So, my question is:

If a build gets deployed to production that has a bug in it, am I able to roll back to a previous version?
Say my click once publish version is 1.0.10 and it gets deployed to production. The users all run it which causes it to download. I find that I have bugs in it. Can I roll back to version 1.0.9?
Or do I have to do another build 1.0.11 to trigger the new download for users?

If somebody has version 1.0.10 will clickonce download version 1.0.9?
Nigel Tufnel  Friday, October 31, 2008 1:09 PM

The version that is run is the one that is represented by the yourapp.application file in the top level of the directory structure for the deployment. I am assuming that you are retaining the directory structure as if you were publishing directly to the server, and you have folders for each version deployed.

If you are doing that, then you can copy the yourapp.application file from the folder for that version and put it in the top level, called yourapp.application (i.e. remove the version in the name if it's in there (vs2005)), replacing the one that is there.

If you are using a publish.htm file, you'll need to edit that to change the version.

If someone has version 1.0.10, and you change the current version to 1.0.9, and it is online-only, I think it will install 1.0.9 again. You'll have to try that out.

If it is online/offline, and you are not pushing the updates as required, they will have to uninstall and select to go back one version.

RobinS.

GoldMail.com

RobinDotNet  Friday, October 31, 2008 4:25 PM

The version that is run is the one that is represented by the yourapp.application file in the top level of the directory structure for the deployment. I am assuming that you are retaining the directory structure as if you were publishing directly to the server, and you have folders for each version deployed.

If you are doing that, then you can copy the yourapp.application file from the folder for that version and put it in the top level, called yourapp.application (i.e. remove the version in the name if it's in there (vs2005)), replacing the one that is there.

If you are using a publish.htm file, you'll need to edit that to change the version.

If someone has version 1.0.10, and you change the current version to 1.0.9, and it is online-only, I think it will install 1.0.9 again. You'll have to try that out.

If it is online/offline, and you are not pushing the updates as required, they will have to uninstall and select to go back one version.

RobinS.

GoldMail.com

RobinDotNet  Friday, October 31, 2008 4:25 PM

You can use google to search for other answers

Custom Search

More Threads

• Several puzzles about ClickOnce Deployment
• Couldn't load assembly after installing with ClickOnce
• Multiple Custom Actions Causes Installer Exception
• How to automaticly start second setup after first setup
• Downloading of form control from HTTPS
• Implementing RemoteCertValidationCallback
• The operation has timed out "during install"
• How to place assemblies in the VS list of .net assemblies
• Installing a winforms app with a SQL Server db
• Prerequisites Not Installing