How To Remove Clickonce Application

Posted on
Active7 years ago

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:UsersUserAppDataLocalApps2.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.

  1. There is a way to purge the online application cache: use 'Mage.exe -cc' or ClearOnlineAppCache API exposed via dfshim.dll. For installed apps though you have to go through Add/Remove Programs UI.
  2. Debugging Your Application 9. Testing Your Application 10. Deploying Your Application 11. Working with Source Control 12. Integrating with Microsoft Office Applications 13. Extending Visual.
  3. I've gone through the project properties and unselected everything that had something to do with ClickOnce, but still the exe file nags me about 'Program indentity has not been set' or something like that (the message language isnt english so sorry for possible crappy translation) Anyone knows how I can get rid of ClickOnce 100% for my application?
  4. The Wunder.ClickOnceUninstaller uninstaller imitates the actions performed by the ClickOnce uninstaller, removing files, registry entries, start menu and desktop links for a given application. It automatically resolves dependencies between installed components and removes all of the applications's components which are not required by other.
  5. Coincidently, the Start Menu Programs shortcut and desktop shortcut are all removed when the ClickOnce application is uninstalled. Solution 2 Programmatically create a URL shortcut file which maps to the ClickOnce application’s update location and place it in the Startup folder.
Peter Mortensen
14.5k19 gold badges89 silver badges118 bronze badges

When I use above, click once application doesn't show up. But it works with other apps. (Getting everything without filter also doesn't contain the click once application. But its visible in add/remove program UI). Thanks in advance.

rg89rg89

5 Answers

Track down mage.exe in the Visual Studio tools folder (C:Program FilesMicrosoft SDKSWindowsv7.0Abin). Copy it to the user's computer. Try this:

This clears the ClickOnce applications. Hp quick launch buttons windows 10 purpose. I would also delete the apps2.0 folder AFTER you do this -- this is the cache created and used by ClickOnce applications.

Then reboot the computer.

Peter Mortensen
14.5k19 gold badges89 silver badges118 bronze badges
RobinDotNetRobinDotNet
11.2k2 gold badges25 silver badges32 bronze badges
How To Remove Clickonce Application

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:

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.

The technical person is not compulsorily required to operate the software. MyiSchool Web Based School management system is designed to help the schools/ colleges in maintaining the easy flow of working in the institution. MyiSchool is easily accessible and can be used by any individual having basic knowledge of using computers. Online school management software. It also consists of the other modules like, and for better administration of the school/ college. This software can also be termed as Online School Management Information System Software consisting of modules like Attendance of students, Timetable, Examination, School News and Events, Results, etc.

Peter Mortensen
14.5k19 gold badges89 silver badges118 bronze badges
InteXXInteXX
3,5584 gold badges26 silver badges42 bronze badges

Try doing a 'Clean Solution' and then doing another Build. If you publish without incrementing the version number I don't think existing installs will get an update message.

Chris HaasChris Haas
40.8k7 gold badges103 silver badges219 bronze badges

If you've already run the uninstall and it hasn't sorted it, try deleting the files in

You'll have to do some looking around to find your application, but it shouldn't be too hard.

In the past I've used the below code to avoid the users having to click the update button, this will install it without them even knowing.

Peter Mortensen
14.5k19 gold badges89 silver badges118 bronze badges
pingoopingoo

Have you attempted to rollback a version with the ClickOnce Application? You can do this when you got to the Programs and Features and then uninstall on your app.

This should then leave your App in a state where it would then request the latest update again.

netniVnetniV

Not the answer you're looking for? Browse other questions tagged vb.netclickonce or ask your own question.

Active5 years, 8 months ago

Presently when i uninstall a .net clickonce app, it doesn't check whether the App is in the running state. Also it doesn't delete files on PC restart also.

So I am planning to overwrite the uninstall method to handle this situation.

How To Delete Clickonce Application

Which is the class and method gets called on uninstall? Inplacehostingmanager class has only install related functions.

paqogomez
13.6k5 gold badges46 silver badges65 bronze badges
user1687824user1687824
3722 gold badges7 silver badges20 bronze badges

1 Answer

You cannot implement the functionality for uninstall actions in your main application.You need to overwrite the registry entries, written by the setup, to run a custom executable. This will then check if your application is still running and remove the files that you might have stored in a custom application folder. Then you call the real ClickOnce uninstall routine and you're done.

A very good tutorial can be found on www.codeproject.com.

HerdoHerdo
4,8981 gold badge27 silver badges51 bronze badges

How To Uninstall Clickonce App

How to remove clickonce application firefox

Not the answer you're looking for? Browse other questions tagged c#.netvisual-studio-2010msbuildclickonce or ask your own question.