Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > ClickOnce - Deploy previous version
 

ClickOnce - Deploy previous version

Ifthe version deployed (V_3_0_0_3.application) has errors and you want to redeploy a previous version(V_3_0_0_2.application). I noticed that V_3_0_0_2.application is located in the Inetpub wwwroot of the server. Is there a simple way to rollback to this version so that the users use this without having to go to Add/Remove Programs and rollback?

Thanks,

Travis

jones6  Tuesday, March 21, 2006 7:21 PM

For simplicity of discussion, can you publish a new V_3_0_0_4 version of your application keeping the same contents as V_3_0_0_2 and let your users get it ?

On another note if you are familiar with signing of manifests, you can take you App_V_3_0_0_2.Application rename ittoApp.Applicationand replace the App.Application (which would be currently V_3_0_0_3). Then open the App.Application Change the assemblyIdentity version to V_3_0_0_4. re-sign it. In this case the users will still get an update becasuse the deployment version is updated but they will get the bits of your V_3_0_0_2.

Hope you got the idea

-Thanks

Sreekanth

kanthb  Wednesday, March 22, 2006 8:24 PM

I found this right after I posted this question.

Can admins rollback updates?

Yes, this is as simple as replacing the deployment manifest on the server you updated with the deployment manifest of the previous version you want to rollback to.

I am not too familiar with manifests, and I used MageUI.exe to change the V.Applicationmanifest to the manifest in the V_3_0_0_2 folder and then the users got the previous version, so I guess this worked.

Thanks,

Travis

jones6  Thursday, March 23, 2006 6:27 PM

ClickOnce support server-side rollback. You should be able to do this without any regeneration or re-signing of manifests. Replace the main deployment manifest (probably V.application in this case) with the version that you want to rollback to andclients should get this the next time they pull down an "update". In your case rename V_3_0_0_2 to V.application and you should be set.

Regards,
Sameer

Sameer Bhangar - MSFT  Monday, March 27, 2006 6:37 PM

You can use google to search for other answers

Custom Search

More Threads

• updating dll on clients
• ClickOnce setup.exe - empty error message
• "The Operation Has timed out." CLOnce working fine previously. Now, suddenly no workin, no more.
• Exposing User Control Properties and Methods to IE
• How can I automatize process of synchronizing versions of project & deployment files?
• Problem when Deploying using Clickonce through command line "MS-Build"
• Error During ClickOnce Deployment...
• Publish, old name remains after program name change
• Link to form by a web browser
• Include .NET Cleanly with ClickOnce installer?