Uninstall ClickOnce application with PowerShell?

Question:

Is it possible to uninstall a click once client app using windows powershell?

Get-WmiObject Win32_Product -Filter “name=’xxxx'”

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).

Please help.

Thanks in advance.

Answer:

read this:

http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/51a44139-2477-4ebb-8567-9189063cf340/

EDIT after comment:

the problem is that is not an Silent unistallation.
You have to add code for sendkey() TAB + ENTER to made it silently.

Source:

Uninstall ClickOnce application with PowerShell? by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply