I am trying automate the unistallation of a product from Windows using C#.
I tried using
wmic product get name
wmic product where name="myAppName" call uninstall
but my product is not listed in wmic product get name output.
I have an Unistaller.exe file. So I tried calling that exe (using System.Diagnostics.Process) but a confirmation popup appears
"Are you sure you want to uninstall " with Yes/No.
This is NOT UAC
How to send Yes to the pop up?
Or how can I uninstall this exe programatically? This is not a msi