No, it is not in the Directory table.
It is a full file path. ("C:\someDir\someFile.txt" )
I copy the file MY_SOURCE to the directory MY_DIR and rename it to MY_NAME.
 
 
> From: r...@firegiant.com
> To: wix-users@lists.sourceforge.net
> Date: Mon, 25 Aug 2014 15:13:38 +0000
> Subject: Re: [WiX-users] SourceProperty of CopyFile-element changed   after   
> execution
> 
> MY_SOURCE in the Directory table?
> 
> _______________________________________________________________
>  FireGiant  |  Dedicated support for the WiX toolset  |  
> http://www.firegiant.com/
> 
> -----Original Message-----
> From: Ingo Fischer [mailto:ingoderfisc...@hotmail.com] 
> Sent: Monday, August 25, 2014 6:31 AM
> To: General discussion about the WiX toolset.
> Subject: [WiX-users] SourceProperty of CopyFile-element changed after 
> execution
> 
> 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
> 
> ------------------------------------------------------------------------------
> 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
                                          
------------------------------------------------------------------------------
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

Reply via email to