Hello,

How do the attributes SourceProperty and SourceDirectory differ?

I expect the SourceProperty attribute to translate into the sourceFolder column 
of the MoveFile table. It is described as a Property whose value resolves to 
the full path of the source directory. So if I enter any Directory id here, 
SourceProperty will resolve to this directory's target path after CostFinalize, 
won't it?

On the other hand, SourceDirectory is described in the WiX2 doc as source 
directory existing in the installer database  from which to copy or move an 
existing file. So I expect WiX to add some additional logic that maps this 
attribute to a source path, not a target path.

To test it, I just changed SourceProperty to SourceDirectory in a copy of my 
wxs file and compiled both. Result (with InstallShield's MsiDiff): No 
differences!

The issue I want to resolve is the following:

I want to copy some files that have been added to a certain subfolder (say, 
AddFiles) of the installation media, but not listed in the MSI database.

<Directory Id="TARGETDIR" Name="SourceDir">
        <Directory Id="SourceDirAddFiles" Name="AddFiles"/>

        <Component Id="AdditionalFiles" Guid="PUT-GUID-HERE" >
                <CopyFile Id="AdditionalFiles" SourceName="*.*" 
SourceProperty="SourceDirAddFiles" DestinationDirectory="TARGETDIR" 
Delete="no"/>
        </Component>
</Directory>

This does not work, because the property SourceDirAddFiles is set to the 
AddFiles subdirectory of the *target* path.

>From the documentation, I expect this code to work if I change SourceProperty 
>to SourceDirectory. However, I do not get a different MSI.

What has gone wrong here?

Best regards,

Matthias

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to