I have a program that read and write registry files in order to remember window position etc. This is very simple when it comes to just being the administrator but not so much when you are just a user on the system.
I use advanced installer if you have any cool suggestions on that end.
- Where should register parameters be located in order for each user to use my application with their own registry values?
- Is that path general enough so the program can locate that folder without running into issues?
Edits/Updates:
Question 1: Where are you putting things if not in HKEY_CURRENT_USER?
Answer: When i put the files under HKEY_CURRENT_USER it would only place it under that user. So if I were to install the program as administrator, it would only be that user that has the files. As i'm using advanced installer, i'm unsure if that falls under some settings value.
Statement 1 from Bogdan Mitrache: If you prefer, you can also leverage the self healing support from Windows Installer (supported by Advanced Installer too) to have the installer write the default settings under HKCU for each user launching the app, even if installed by the administrator. Here is an example with files, but it applies for registry too: advancedinstaller.com/user-guide/qa-self-healing.html
Response: This is a good solution except for the issue that I have a conditional installation. The user can choose to install one or the other feature where both of them uses these registry values. This is probably why it is not working for me. I'm going to look over duplicating the files in a logical sense in AI.
HKEY_CURRENT_USER
? – molbdniloHKLM
, and user settings underHKCU
. User settings should be set by the application on 1st run by each user not by the installer. – Richard Critten