Thanks for your repply Blair.

I understood how to make this work:

1. Use FileSearch to locate the file.
2. If found use CopyFile to copy this file to install dir. If not found then
use Browse file dialog to locate the file.

However I am having difficulty in refering to this file which will be at the
same location where my msi is executed from.

I tried using "SourceDir", still the following code always displays the
message "File Exist" even if i delete the file.

    <Property Id='FILEEXISTS'>
      <DirectorySearch Id='DirSearch' Path='SourceDir' Depth='0'>
        <FileSearch Id='FileSearch' Name='NewFile.txt'/>
      </DirectorySearch>
    </Property>
    <Condition Message="Error: NewFile.txt DOES NOT Exists">NOT
FILEEXISTS</Condition>
    <Condition Message="Error: NewFile.txt Exists">FILEEXISTS</Condition>

Can you please proivde same code how to refer this file?
I am sorry for any dumb question, i am still quite new to WIX and learning
each day.
-- 
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-tp5824066p5824228.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