I'm trying to set a registry key containing the folder of installation of my app (which will be reused to install plugins afterwards) the problem is that when I run the installer, the registry doesn't get modified.
To add the registry key I right clicked the setup project>View>Registry, then in HKLM>SOFTWARE>[Manufacturor] I created a string value with "[INSTALLDIR]" or "[TARGETDIR]" but even the folder in SOFTWARE is not created though I changed the AlwaysCreate property to true.
Do I need to add something to validate that I want this registry modification applied? Thanks for reading
EDIT: as said in comments, I tried running the install as admin but didn't help, the installation runs totally fine except for the registry part. Tried looking at Custom Actions but I did not understand how to make it work for registry management(and I guess if there is a registry option, it should be easier this way, right?)