How to modify a virtual registry value for every user?
I've created a layer of Evernote and it works well but I need to change an option in the program that needs to be different for every user of the layer.
This option is the path where the Evernote database is located. If you don't modify the default installation it goes to a directory below the user profile like this one:
I know that I can exclude this directory so the data inside it goes to the base instead of the layer but is better for us to move this data to another partition or a network drive so is not lost when redeploying the OS.
If I change this path through the program GUI this info appear in the registry:
So, how do I need to write this information in the layer registry so it will different for every user? I've test using D:\USUARIS\%USERNAME%\Evernote both as REG_SZ and REG_EXPAND_SZ without success because the program expects to be a real path not to use variables.
Is there any trick to have this registry key a variable? Or to populate it with the real and good value uppon the first start of the layer by the user?