I am trying to install a DLL into another products directory. I find the directory by doing the following RegistrySearch:
<Property Id="CUSTOMPATH">
<RegistrySearch Id="CustomPath"
Root="HKLM"
Key="SOFTWARE\Wow6432Node\XXXXX\XXXXX\XXXX"
Name="MY Install Path"
Type="raw" />
</Property>
Can someone tell me how to use this property to install components of my product into this directory?
I have tried this approach but get an error that []'s are not valid for DestinationDirectory attribute.
<DirectoryRef Id="MyInstallFolder">
<Component Id="MySharedDll.dll" Guid="some-guid">
<File Id='MyFile.dll' Name='MyFile.dll' DiskId='1' Source='MySourceDir\MyFile.dll'>
<CopyFile Id='x_MyFile.dll' DestinationDirectory='[REGISTRYSEARCHPATHFOUND]'/>
</File>
</Component>
</Directory>