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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:51:38+00:00 2026-05-13T20:51:38+00:00

When my software is installed, via an MSI, it creates some registry keys within

  • 0

When my software is installed, via an MSI, it creates some registry keys within HKLM. When people are using the software their individual preferences are saved to HKCU. When the software is uninstalled the HKLM and HKCU registry keys are deleted, but I’m thinking that it’s only the HKCU keys for the user who is running the uninstall that will be deleted. Is this correct? If so, how do I ensure the HKCU subkeys for other people who have used my software on the same machine are deleted?

UPDATE: The ‘individual preferences’ that are saved in my case aren’t really settings that the user has chosen, but rather data that the application has stored while running for that user. So it’s not really data that the user would want to keep. It seems right to delete it on uninstall since it won’t have any use if the application is reinstalled. So I guess the best suggestion so far is Ed’s: don’t use the registry, although that’s not really solving the original question.

  • 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-13T20:51:38+00:00Added an answer on May 13, 2026 at 8:51 pm

    Short answer is you don’t. The installer is suppposed to remove entries it creates and nothing else. If your app creates per-user settings at runtime, those are not owned by the installation routine.

    If you really really really want to do this, you can create a custom action and force the uninstall to run as administrator so you can access all user hives. Be warned – this is completely nonstandard behavior and can it can take a significant amount of time & system resources to mount & unmount all of the user hives. And if your uninstaller isn’t careful, you can damage things in the system-level hives and make your system unbootable.

    As I mention in the comment to sascha’s reply, Windows Installer Best Practices say (said?) to leave custom user settings on uninstall. That way if the user reinstalls your software, their settings are available.

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

Sidebar

Related Questions

I'm trying to configure an installer for some software we use within the company.
We distribute the software created by my group via Windows installers generated via NSIS.
Recently, my Eclipse 3.4 installation started complaining while trying to update installed software. I
I'm looking for a database of commonly installed Windows software. At minimum I need
In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ is the list of installed programs in my machine (at least most
Here is what I have: JAVA_HOME=C:\Software\Java\jdk1.5.0_12 (points to JDK 5.0) In Eclipse Installed Runtimes
Expanding on Free install wizard software I am looking for a cross platform installer.
Sometimes software installers force you to scroll to the end of the EULA before
The prompt says that if I install the software into a directory with spaces:
What software is recommended for working with and editing large XML schemas? I'm looking

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.