I am writing a merge module which installs components in a "My Shared" subdirectory of "Program Files\Common files\". The path is saved in a registry key under HKLM\SOFTWARE\CompanyName\Shared\ value:Base Folder which may or may not exist. This default location may have been changed by a previous install so it is saved in the registry.
I want the merge module to default the installation directory to [CommonFilesFolder]My Shared.
If the AppSearch finds the registry setting I want to use it instead of the default setting above. This sounds like a simple thing to ask but I cannot seem to get it to work.
Q1) How do I set a directory property which is defaulted but which can be overwritten by an AppSearch?
Q2) If the same property is used in both the Property table and the Directory table which default value is used when the directory path is applied to a component install location?
Q3) How do I make a property value dependent on another property value?
Any help welcome!
