Solved

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

Posted on 2011-03-02
5
2,342 Views
Last Modified: 2012-05-11
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
Comment
Question by:JaniHuttunen
  • 3
  • 2
5 Comments
 
LVL 42

Expert Comment

by:sedgwick
Comment Utility
how do u uninstall it from your C#?
do u use msiexec command line?
0
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
Comment Utility
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
 

Assisted Solution

by:JaniHuttunen
JaniHuttunen earned 0 total points
Comment Utility
Ok, thanks. The final working line is "msiexec /uninstall {F7D62431-DDAA-48BA-BEEA-5548F4C559D1} /quiet". It did not work with /x at all.
0
 
LVL 42

Expert Comment

by:sedgwick
Comment Utility
cheers
0
 

Author Closing Comment

by:JaniHuttunen
Comment Utility
My own comment contains the final solution.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now