Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7571061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:34:45+00:00 2026-05-30T15:34:45+00:00

We have an Excel AddIn say A written in C#, Add-In Express. The installer

  • 0

We have an Excel AddIn say A written in C#, Add-In Express. The installer is built from setup project in VS.
Now we want to integrate it to another bigger add-in application say B.
we want to be able to uninstall A during installation of B.
B is also written in C#, but its installer is built from Advanced Installer.

I tried VBA like below, AddIns only contain “A XLL Add In” but not “A COM Add In”. so it does not work. So I am thinking to write an exe to detect if A is installed and if so, uninstall it.
and call the exe in installer of B.
Anyone know how to “uninstall a program in C#” ? or there is better solutions? thanks
Once I can detect A and uninstall it in an exe, I will be able to hook it in installer of B.
Installer/Uninstaller class in .NET is not an option since I am not using them in installer of B.

Dim item As AddIn
Set item = Application.AddIns("A COM Add In")

If Not item Is Nothing Then
    item.Installed = False
    'item = Nothing 'Not sure if this does anything
End If

    Dim item As AddIn
Set item = Application.AddIns("A XLL Add In")

If Not item Is Nothing Then
    item.Installed = False
    'item = Nothing 'Not sure if this does anything
End If
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:34:47+00:00Added an answer on May 30, 2026 at 3:34 pm

    You can uninstall the previous version by invoking MSI directly:

    msiexec /x YOUR-PRODUCT-CODE
    

    Replace YOUR-PRODUCT-CODE with the real product ID used in your MSI package which installed the AddIn A.

    You may want to add /qn option to completely suppress its UI.

    MSI also provides API you can use to find out if the product is installed and to uninstall it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Excel AddIn, VS2010, C#, Windows Installer VS2010, Setup project, RemovePreviousVersion: True, DetectNewerInstalledVersion: True, InstallAllUsers:True
I have c# code behind my Excel-dna addin which is successfully downloading data from
I have made a new Excel 2010 Add-in project, with VS10. When I run
I have a an Excel addin written in C# I am trying to call
I have an excel 2007 Add-in built with VS2010 VSTO library. when i create
I'd like to create an Excel Add In. But I want it to have
Whenever I try to add a new ribbon into my Excel 2010 addin project,
I've written an Microsoft Excel add-in in .NET using Add-in Express , and deployed
I have an XLL Excel addin and now another team wants to use the
I'm writing an Excel Addin using COM Interop from .net. I have a command

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.