Hello, I have following CopyFile element in my Product.wxs: <CopyFile Id="myId" DestinationDirectory="MY_DIR" DestinationName="MY_NAME.xml" SourceProperty="MY_SOURCE" /> My bootstrapper application passes the MY_SOURCE property in to the msi-file. The value of MY_SOURCE is "C:\someDir\someFile.txt". It includes the filename and extension! Some CA that executes after CreateFiles uses the property:
if (!File.Exists(session["MY_SOURCE"])) { session.log(string.format("File {0} does not exist", session["MY_SOURCE"])); } the log is: File C:\someDir\someFile.txt\ does not exist MY_SOURCE changed from "C:\someDir\someFile.txt" to "C:\someDir\someFile.txt\" Why? Btw, if I use a local property it works: <SetProperty Id="copyMy_Source" Value="[My_SOURCE]" Sequence="execute" After="CostFinalize" /> ... <CopyFile Id="myId" DestinationDirectory="MY_DIR" DestinationName="MY_NAME.xml" SourceProperty="copyMy_SOURCE" /> log: MSI (s) (50:84) [15:12:15:224]: PROPERTY CHANGE: Adding copyMy_Source property. Its value is 'C:\someDir\someFile.txt'. and this is also my workaround for now. ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users