473,320 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

6
Hi,
I have a program (A), which installs a program B when installing A. The program B will be located on C:\\Program Files...\Program 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 1204

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

Similar topics

2
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. ...
5
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,...
2
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....
5
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...
0
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...
2
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...
0
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...
3
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...
1
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...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.