Solved

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

Posted on 2011-03-02
5
2,472 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

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…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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…

829 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