[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2941
  • Last Modified:

Hiding the Windows Installer "Are you sure you want to uninstall this product" -popup

I am using C# to programmatically uninstall another application (see topic ID: 20926840). The Windows Installer, unfortunately, decides to show a confirmation box saying "Are you sure you want to uninstall this product". Is there any way to hide this or select yes in my application?
0
JaniHuttunen
Asked:
JaniHuttunen
  • 3
  • 2
2 Solutions
 
Meir RivkinFull stack Software EngineerCommented:
how do u uninstall it from your C#?
do u use msiexec command line?
0
 
Meir RivkinFull stack Software EngineerCommented:
if u use msiexec simplu add /quiet at the end of the command line string:
http://www.experts-exchange.com/Other/Miscellaneous/Q_21571119.html
0
 
JaniHuttunenAuthor Commented:
Ok, thanks. The final working line is "msiexec /uninstall {F7D62431-DDAA-48BA-BEEA-5548F4C559D1} /quiet". It did not work with /x at all.
0
 
Meir RivkinFull stack Software EngineerCommented:
cheers
0
 
JaniHuttunenAuthor Commented:
My own comment contains the final solution.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now