Solved

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

Posted on 2011-03-02
5
2,386 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
ID: 35016916
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
ID: 35016933
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
ID: 35026633
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
ID: 35026887
cheers
0
 

Author Closing Comment

by:JaniHuttunen
ID: 35067763
My own comment contains the final solution.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Run time Error 4 34
SQL Exceptions 3 37
Help with C#, MVC, razor. 6 23
use of unassigned local variable 'id' 6 21
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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…

910 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

24 Experts available now in Live!

Get 1:1 Help Now