I had the same problem and had to use a custom action to write it to the
property after AppSearch had been completed. What is the proper way of doing
this?
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Benas
Sent: Wednesday, July 11, 2007 3:05 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Install target directory from Registry key.
Hello,
I'm trying to install my program to directory from registry key.
Here is source code:
<Media Id="1" Cabinet="Files" CompressionLevel="high" EmbedCab="yes"/>
<Property Id="MYAPPPATH">
<RegistrySearch Id='FacilitiesPlannerRegistry' Type='directory'
Root='HKLM' Key='Software\Test\Test\' Name='PathName' />
</Property>
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='ProgramFilesFolder' Name='PFiles'>
<Directory Id="MYAPPPATH" Name="."> <!-- Overrides the parent folder
-->
<Directory Id='MyDir' Name='TestProg' LongName='Test Program'>
<Component Id='component' Guid='BC3244DE-2311-4376-9DF5-42E7942A2937'>
<File Id='testFile' Name='testFile.dll' DiskId='1'
Source='testFile.dll' KeyPath="yes" Vital='yes' />
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
<Feature Id='Complete' Level='1'>
<ComponentRef Id='component' />
</Feature>
If i look at log file i see that registry search was successful, but the file
is installed to C:\Program Files\Test Program\ dir.
If i set MYAPPPATH property manually like this: <Property
Id="MYAPPPATH">[d:\mydir\]]></Property> everything works fine.
Where is the problem?
Thanx,
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users