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

  • Home
  • SEARCH
  • 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 3984120
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:43:52+00:00 2026-05-20T05:43:52+00:00

I have a Setup Project which uses a System.Configuration.Install.Installer Class forhandling some custom actions.

  • 0

I have a Setup Project which uses a System.Configuration.Install.Installer Class forhandling some custom actions. My logic in the Uninstall method was throwing an exception (null reference exception to be exact) which causes the uninstallation to exit without actually uninstalling anything.

I know what is causing the issue and changed the code in the Uninstall method, but it doesn’t matter because if I try to uninstall the program via the Control Panel, it won’t have the changes I made so it will continue to exception out, and if I try to uninstall via the context menu of the Setup Project in VS2010, it doesn’t seem to use the rebuilt Setup Project and does the same thing which happens trying to uninstall via the Control Panel.

I feel like I’m caught between a rock and a hard place. Has anyone else fallen into this situation, and if so, how do you circumvent it?

  • 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-20T05:43:53+00:00Added an answer on May 20, 2026 at 5:43 am

    This Question answered my question perfectly.

    Basically, I just recompiled the System.Configuration.Install.Installer dll file without any logic in the Uninstall method. Manually replaced the dll located in the program’s install location with the newly compiled one, and then tried to uninstall the program again. The uninstaller will use the new dll file and won’t throw an exception (because I removed all my code from that method).

    I was then able to fix my code and make a new installer.

    As a just in case, I threw all my uninstall logic into a try block and am catching Exception which you can argue is bad, but at least it keeps any changes I make to the method from crashing the uninstallation process (for me, it just means some configuration files might get left behind not cleaned up properly).

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

Sidebar

Related Questions

I have a setup project for a .NET Service Application which uses a .NET
I have the following setup: I have an eclipse project which uses generated sourced
Project setup: Logging-1.0.jar contains a Logger.class which uses slf4j/log4j depends on slf4j-api.jar, slf4j-log4j.jar, log4j.jar
I have a Visual Studio Setup project which has a Application Folder DefaultLocation set
I have a Setup project (MSI) in VS2008 which installs my project. Within the
I have a .NET 3.5 Setup Package Project which installs my application successfully. The
I have built a web setup project in VS2008 which installs my ASP.NET/Silverlight app
I have my Fluent NHibernate setup code in a DataAccess project which is accessed
I have several files with code testing code (which uses a unittest class). Later
I have a Solution with a Project which uses a MSSQL Database and generated

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.