I figured it out. Following is the code if it could help some newbie like me
:-)

<Property Id='FILEEXISTS'>
      <DirectorySearch Id='DirSearch' Path='[SOURCEDIR]' Depth='0'>
        <FileSearch Id='FileSearch' Name='NewFile.txt'/>
      </DirectorySearch>
    </Property>

          <Component Id="MyFileCopyId"
Guid="{98E61055-5A84-4003-90D1-7A67677D7465}">            
            <CopyFile Id="MyFileCopyId" SourceProperty="FILEEXISTS" 
DestinationProperty="INSTALLDIR"/>
          </Component>
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Copy-files-from-same-location-as-msi-is-run-to-installtion-dir-tp5824066p5824383.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to