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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pstve
    New Member
    • Oct 2008
    • 6

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

    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?
Working...