title: How to remove HKCU registry keys when uninstalling software?
body: <p>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?</p>
  
  <p>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 <a href="https://stackoverflow.com/questions/2365508/how-to-remove-hkcu-registry-keys-when-uninstalling-software/2368923#2368923">Ed's: don't use the registry</a>, although that's not really solving the original question. </p>