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 95793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:42:50+00:00 2026-05-10T23:42:50+00:00

Sometimes it’s necessary to modify Windows registry settings during an application install. I’ve recently

  • 0

Sometimes it’s necessary to modify Windows registry settings during an application install. I’ve recently been frustrated by applications that don’t restore these settings when they are uninstalled. As I thought more about this, it occurs to me that there may not be a good (or valid) way to save and restore registry settings. Take the following sequence of events for example:

  1. Application A owns the Open action for file extension .abc.
  2. Application B is installed, and hijacks the Open action for file extension .abc.
  3. Application A is uninstalled.
  4. Application B is uninstalled.

At step 3, if Application A is smart enough, it will detect that it no longer owns the Open action and will therefore skip any attempt to restore it.

At step 4, is there any valid action that Application B can take?

  • Doing nothing leaves the Open action pointing to a deleted executable.
  • Restoring the pointer to Application A is likewise a deleted executable.
  • Asking the user is not allowed since this is typically considered way beyond the technical skills of the typical user. If you don’t agree, then substitute a different registry change in steps 1 and 2 that you think would be out of scope for the user to answer.
  • Deleting the action will likewise require the user to make an uninformed decision at a later time, or else make some function unavailable to the user.

This is only one of many bad situations that I can envision where there is no obvious one-and-only ‘correct’ solution. My next project will require registry changes during install, and I’d like to know the best or recommended practice for the uninstall. Unfortunately, I’ve been burned by bad uninstall practices in current commercial packages, so I’m aware that there’s no consensus on best practice here, and it’s either a lot of work to do it right, or else a design flaw in the Registry, or both.

This is a very real programming problem for me. I’m tagging it Subjective because I’m not sure there’s any one-size-fits-all right answer to this. Please feel free to disagree.

  • 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. 2026-05-10T23:42:50+00:00Added an answer on May 10, 2026 at 11:42 pm

    If you’re writing Application B, then I’d say don’t hijack the Open action for the .abc extension in the first place. During install, ask the user if he wants to associate .abc files with your program. During uninstall, check if your program is still associated. If so, disassociate the file extension, otherwise leave it alone.

    If there’s another application that wants to still be associated with .abc files after you uninstall B, tough – make the user fix it. After all, he consented to associate .abc files with your application and then uninstalled your application.

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

Sidebar

Ask A Question

Stats

  • Questions 97k
  • Answers 97k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You're going to need more IP addresses. The problem with… May 11, 2026 at 7:23 pm
  • Editorial Team
    Editorial Team added an answer There was something fundamentally wrong with the code that I… May 11, 2026 at 7:23 pm
  • Editorial Team
    Editorial Team added an answer Try this Return RedirectToAction("Details", New With { .id = dinner.DinnerID})… May 11, 2026 at 7:23 pm

Related Questions

Sometimes it might be useful, but mostly just looking cool or impressive to visualize
Sometimes it feels that my company is the only company in the world using
Sometimes it's difficult to describe some of the things that us programmers may think
Sometimes it seems natural to have a default parameter which is an empty list.
Sometimes it's necessary to modify Windows registry settings during an application install. I've recently

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.