Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uninstall ClickOnce clients

Tags:

Since ClickOnce installs per profile rather than per computer, is there any way to uninstall a single ClickOnce client application from multiple profiles at the same time?

We have a ClickOnce application that we would like to remove and re-install using a standard MSI, but we don't want to have to log in as each user to do the uninstall.

Assuming there isn't anything baked in, is there a custom tool?

like image 940
Aaron Avatar asked Aug 12 '09 15:08

Aaron


People also ask

How do I completely uninstall ClickOnce?

To uninstall a ClickOnce application, users can go to the Control Panel and launch the "Add or Remove Programs" application. In the "Change or Remove Programs" section, users then select the application to uninstall and click the Change/Remove button.

Where are ClickOnce applications stored?

Every ClickOnce application installed on a local computer has a data directory, stored in the user's Documents and Settings folder.

Is ClickOnce still supported?

ClickOnce and DirectInvoke are supported out of the box for all Windows users. Users that want to disable ClickOnce support can go to edge://flags/#edge-click-once and select Disabled from the dropdown list. You'll have to Restart the browser.

Does ClickOnce require admin rights?

Windows Installer deployment requires administrative permissions and allows only limited user installation; ClickOnce deployment enables non-administrative users to install and grants only those Code Access Security permissions necessary for the application.


1 Answers

You could manually delete the ClickOnce install for each user. I haven't tried doing this on a large scale, so use at your own risk. However, these steps should get rid of a ClickOnce app.

  • Delete the deployed files. On my machine, the path to my ClickOnce deployed files is, %UserProfile%\AppData\Local\Apps\2.0. If you delete everything under this folder, it will delete all ClickOnce applications. Obviously, you'd need to do this for each user profile.

  • Delete the start menu shortcut. Again, this needs to be done for each user profile.

  • Now all that's left is an entry in Add/Remove programs. I think removing this is optional since it doesn't really hurt anything, but to get rid of it you can delete registry entries. Go through the users under HKEY_USERS and delete this key, Software\Microsoft\Windows\CurrentVersion\Uninstall\[random string associated with your app].

like image 67
codeConcussion Avatar answered Oct 15 '22 08:10

codeConcussion