473,748 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to use Uninstall.exe from another program in C#?

6 New Member
Hi,
I have a program (A), which installs a program B when installing A. The program B will be located on C:\\Program Files...\Progra m B

But I also would like the Program B to uninstall when I'm uninstalling A.
Program B has an "Uninstall. exe" file which I would like to use when uninstalling A. how do I reach this one? I'm using Add/Remove programs when I'm uninstalling A (windows installer).

I'm using Custom Actions for the installation of program B (a .exe file). I guess it is the "Uninstall" in Custom Actions I should use for uninstall? But HOW? What file should I take in?

Anyone who could help?
Oct 15 '08 #1
0 1234

Sign in to post your reply or Sign up for a free account.

Similar topics

2
3021
by: Dave A | last post by:
I have an application that runs in the system tray (taskbar notification area) and it runs at startup. Occasionally I need to release a new version. I have created a deployment project in .Net. With the MSI it detects whether a current version is installed and requests that the user uninstalls it prior to installing the new version. Also, MSI detects a running instance of the application during the uninstall and requests that it be closed...
5
20393
by: Adam Clauss | last post by:
I am needing to automate some installation tasks. I first need to determine if there is already a version of a program installed. The program appears in the Add/Remove Programs in control panel, and I know this is all stored in the registry. But short of searching through the entire registry, I cannot figure out how to locate the program. I see that in the registry (for .msi) installs, stores something like:...
2
6852
by: Keith Smith | last post by:
I have noticed that when I uninstall my app it doesn't delete the Program Files / MyApp folder if there are "new" files in it that weren't there before. It deletes all files except the "new" ones. Is there a way to make an uninstall so that it just completely wipes out my Program Files / MyApp folder no matter what?
5
3315
by: Maik | last post by:
Hello, I've developed a solution with VS2003, which automates Excel XP. I created a setup project featuring install of the Primary Interop Assembly 'microsoft.office.interop.excel.dll' in the GAC. I added a condition: If the dll already exists (correct version) in the GAC then a new install will be canceled. This condition run. But if I uninstall my program, the entry in the GAC will be removed. Why?
0
1368
by: Patrick Dugan | last post by:
I have a vb.net deployment project. The program that gets installed can create custom named files. I don't see any way in the deployment project options to remove files that were not installed in the first place. I wrote a program to accomplish that (cleanup program) but how can I get to execute BEFORE the uninstall removes files? I can add it to custom actions - uninstall but this only allows things after the uninstall is through and...
2
1690
by: WWengert | last post by:
I am developing a Windows application using VS2005 Pro (VB). The solution includes a setup project. I sent the setup files to a tester and he installed and used the program successfully. I then sent him a new install package with some updates but after he did the uninstall via Add/Remove Programs and then runs the new install package it complains that the program is already installed? How can I completely uninstall the previous version. ...
0
2414
by: Nattydreadlock | last post by:
Hello, I'm having some problems installing Visual Studio 2005. I'll briefly explain what's the history of the problem here. First I installed VS 2005 beta 2. I uninstalled it later via the Windows Uninstall Tool you can download. Then I installed Visual Studio 2005 Team Edition ENU. This was a trial version for 180 days.
3
8094
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi anyone, I have installed a winforms application vs 2005. It appears in Control Panel -Add / Remove Programs. I have another application .NET and I want uninstall the application installed programatically using only the name of application that appears in Control Panel -Add /Remove Programas (the product name). Is it possible ?? Any suggestion about it ? Anyone has any ideas ?
1
8494
by: Luke | last post by:
Hey all, i'm currently working on a project for our IT group. what this program does is lists all the installed programs on the remote machine for the admin. what i'm trying to add is functionality for the admin to select a program from the list and click an uninstall button on the program to uninstall the program remotely. We are rebuilding this program
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9326
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8245
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4877
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.