For #1: You could use the <CopyFile/> element where your source directory is as described here: http://msdn.microsoft.com/library/aa371857.aspx. However, to combine this with #2, instead use this in creating your path to the file you will copy directly.
For #2: you could try a <FileSearch> (see the link above to locate the directory to search in) and then show a browse dialog if the property doesn't exist. You can then use that property in your <CopyFile/> element. -----Original Message----- From: kate_102 [mailto:contactme...@gmail.com] Sent: Friday, December 10, 2010 10:09 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Copy files from same location as .msi is run to installtion dir Hi, I am working on my Wix project and have 2 questions: 1) How can I copy file from the same location as my .msi is to the destination folder specified during installation. This file is not part of .msi package but a customized file that needs to be copied after the installer copies the main code files. 2) If this customized file is not available at the location where .msi file is, then I need to show up a OpenFile Dialog so that user can specify the location of this file. In short, by default the installer should look for the customized file at the same location where the installer is and if the file is not available then show OpenFile Dialog. Any suggestion or sample code snippet would be very helpful as I am bit new to WIX world. Thanks for your time. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Copy-files-fro m-same-location-as-msi-is-run-to-installtion-dir-tp5824066p5824066.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 ------------------------------------------------------------------------------ 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