Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I remove all traces of a ClickOnce application from a customer's computer?

I have a ClickOnce application that about 120 customers are using. This week, I found out two customers declined an update in January and were stuck on an old version. I discovered this by deleting an ASP script the old versions used on our server. The customers that aren't updating get a 404 and call to ask why.

One customer clicked our install button again and got the latest version no problem. The other clicked our install button and gets an "Application validation did not succeed" error. The details of the error are SomeImage.gif "has a different computed hash than specified in manifest."

I don't want to deploy a new version because that usually results in phone calls asking, "did you add what I asked for yet?"

I figure I should be able to uninstall the application completely and resintall with the one problem user. Nope. The error persists. How can I remove whatever the Windows uninstall process leaves behind that would cause this error to persist?

Update:

I found the folder C:\Users\User\AppData\Local\Apps\2.0 on the customer's Windows Vista computer, and deleted it. We ran the installer again, and the error persisted after redownloading the application. I'm not 100% confident that this folder contained the whole program, though, but it is the only location on disk I could find that contained some resemblance of our application.

like image 874
rg89 Avatar asked Apr 07 '11 16:04

rg89


2 Answers

Track down mage.exe in the Visual Studio tools folder (C:\Program Files\Microsoft SDKS\Windows\v7.0A\bin). Copy it to the user's computer. Try this:

mage.exe -cc

This clears the ClickOnce applications. I would also delete the \apps\2.0 folder AFTER you do this -- this is the cache created and used by ClickOnce applications.

Then reboot the computer.

like image 127
RobinDotNet Avatar answered Oct 16 '22 10:10

RobinDotNet


This may or may not help. My error messages weren't exactly as you describe, but I was eventually able to remove the final traces on my machine by going to:

HKEY_CLASSES_ROOT\Software\Microsoft\Windows\CurrentVersion\Deployment\SideBySide\2.0

I deleted all grandchild keys that bore names similar to my application. After that I was able to install and run the latest version.

This is on Windows 7 64 bit.

like image 26
InteXX Avatar answered Oct 16 '22 09:10

InteXX