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

Reply via email to