Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Changing Development Machine for my ClickOnce App

Posted on 2011-09-15
Medium Priority
Last Modified: 2012-05-12
I have a click once app that I publish to my local network share and have ~100 users installed.  Works great.   My development machine is Vista with VS2008 is older and in need of replacement.    The thought of changing the machine makes me nervous.... When I do my next published update from my new development machine, anything to watch out for?

The old machine is Vista.
The new machine is Windows 7.    

Both will develop with VS2008.    I just don't want to have any gotcha's that will require re-install of all 100 clients.

Question by:browe68
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 2
  • +1
LVL 49

Expert Comment

by:Martin Liss
ID: 36546034
Are you actually changing the PC or just upgrading the OS?

If it's the latter then probably nothing to worry about but make sure that you have created a checkpoint from before the upgrade that you can go back to in case there are serious problems.
LVL 40
ID: 36546280
If you created your own digital signature on your old compuete, you might have to transfer it to the new computer.

Strangely, you do so through Internet Explorer.

In the Internet Options dialog, you go to the Content tab, and the Certificates button.

Select your signature. This can be hard if there are many and you did not took a note when you created it. The date might help you.

Export your signature, taking care of specifyint that you want to export the Private key, and select the default certificate.

Put the resulting file in a secure location in case you need to reuse it elsewhere.

If you have problems compiling or publishing your application from the new computer, copy the file on it and import it through the same way in Internet Explorer.


Author Comment

ID: 36546507
Actually, this is a brand new computer that has all the components reinstalled.  (i.e. Visual Studio, Crystal reports, etc...)   My ClickOnce app is not digitally signed - so I hope I am safe there.   I have it as a Trusted App, so only users on my network can use.

My concern is that when I publish from the new machine - what might go wrong!   Which brings up the next question of what is best 'rollback' strategy on a publish (that might have issues).
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

LVL 49

Expert Comment

by:Martin Liss
ID: 36546519
Keep the old PC around until you can verify that the new one works okay. Or perhaps partition the new machine to run both Vista and Win 7 and copy your current environment to the Vista partition.
LVL 83

Assisted Solution

CodeCruiser earned 400 total points
ID: 36570509
I would change MartinLiss's suggestion a bit. Publish a test app from old computer and install on 1-2 computers. Then move it to new machine and publish from there and see the impact.
LVL 40

Accepted Solution

Jacques Bourgeois (James Burger) earned 1600 total points
ID: 36570751
If the application install, its because everything went well. Otherwise, ClickOnce would automatically perform a Rollback.

If you want to feel safer, the Publish version does not have to be the same as the application version.

Publish from the old computer, noting the Publish version, such as 1.3.4
Publish from the new computer, incremengint the Publish version : 1.3.5
If something goes bad go back to the old computer, and republish, incrementing to 1.3.6

The Publish version is the one that ClickOnce use. So you can override a newer version of the program with an older one, as long as you increment the Publish version.
LVL 40
ID: 36574857
Another one I forgot.

The user can always rollback to the previous version (only the last one) through the Control Panel. If he requests a Repair / Install on the application, he will have the choice to bring back the last version installed before the update.

Author Comment

ID: 36574950
Hey James, thanks for all of the suggestions...  I was unaware of the 'Restore the application to its Previous State".   So, that will roll it back 1 version?
LVL 40
ID: 36574970

ClickOnce always keeps 2 copies of the installation for a ClickOnce deployment. The last Update, and the one before. So, automatic Update if needed.

I am too often thinking of my side of things as a programmer and had forgotten about that one on the side of the user.

Author Comment

ID: 36575161
Also, any tips on rolling back at the server level?  One strategy I have used is to make a copy of the Setup Folder on Server before Publish.  If something goes wrong after publish, I just replace that folder with the backup.  It has worked a few times in a pinch.

LVL 40
ID: 36575545
Better than making a backup before Publish, make a backup of the whole project every day :-)

Author Comment

ID: 36575797
I do that too.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question