Install Clickonce Programmatically Hide
Hi, You can create a cmd file and type the uninstall string. Then add a shortcut to this cmd file and put it to user’s program folder. Check this thread: To find the “uninstall string”, you could search it in the registry: You could also create a console application for this.
And put the execute file with the deploy project then create a shortcut or copy this file to the user’s program folder. (The first FAQ) By the way, there is an article tells create uninstall shortcut for clickonce: Hope this helps. Best regards, Ling Wang This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
See More On MSDN
This can be beneficial to other community members reading the thread. Hi, You can create a cmd file and type the uninstall string. Then add a shortcut to this cmd file and put it to user’s program folder. Check this thread: To find the “uninstall string”, you could search it in the registry: You could also create a console application for this. Biopsychology pinel 8th pdf merge. And put the execute file with the deploy project then create a shortcut or copy this file to the user’s program folder. (The first FAQ) By the way, there is an article tells create uninstall shortcut for clickonce: Hope this helps. Best regards, Ling Wang This response contains a reference to a third party World Wide Web site.

Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
This can be beneficial to other community members reading the thread. This article is about handling certificate expiration, and it includes code to uninstall your ClickOnce app. You basically look for the uninstall string in the registry and then execute it. One note - I've simplified this code since I first wrote it.
Since we don't ever install multiple ClickOnce apps with the same product name, I don't bother checking for a matching product key token any more, I just check that the DisplayName in the uninstall string in the registry matches the ProductName of my app, and retrieve THAT uninstall string. (You'll see what I mean). Note that this also clicks the OK button for the user.
RobinDotNet Microsoft MVP, Client App Dev.
System.Deployment.Application.InPlaceHostingManager lets you download ClickOnce applications using a programmatic API, making it perfect for managed SMS installs, or for creating a custom Windows Forms “dashboard” application that lets your customers install all available ClickOnce apps from a menu.