I sent an email a couple days ago explaining the path the compiler and linker 
follow to select the appropriate sections.  Basically, the linker starts at the 
Product and follows references to symbols in other Fragments.  If you don't 
create a reference to anything in another Fragment nothing in the Fragment gets 
included in the final output.  If things didn't work this way then you'd get 
everything on the linker command-line included in your final output and that 
would defeat the point of breaking things into smaller pieces.

If all you have is Property elements in a Fragment, then in the Product or some 
Fragment that you know is getting pulled in add the PropertyRef.  Consider that 
PropertyRef a function call to the other Fragment... without the function call 
there is no point for the linker to pull that code in.


-----Original Message-----
From: Dmitry Berkovich [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2008 14:31
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Interesting behavior with Properties inside <Fragment> 
(wix 3.0.4325.0)

Its smell like bug. Because If I am declaring fragment that contains
only properties - all properties will be missing in Property table.
But if under same fragment, in addition to properties I will declare
some feature or component all properties will be added to Property
table.

I am speaking about real flow. In my installer I have develop some
extension that extend <Property> element. My extension data also
disappear from MSI tables if fragment contains only properties.
Currently I had found some workaround, I am declaring some dummy
component under same Fragment to resolve this problem.

BTW - where you suggest me declare Propertyref?

Dima

On Thu, Oct 9, 2008 at 10:43 PM, Rob Mensching
<[EMAIL PROTECTED]> wrote:
> PropertyRef at least one of them.
>
> -----Original Message-----
> From: Dmitry Berkovich [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 09, 2008 13:40
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Interesting behavior with Properties inside 
> <Fragment> (wix 3.0.4325.0)
>
> Hi,
>  In my design, I want declare separate wxs file (fragment) that will
> contain only properties. What you suggest me to do?
> Dima
>
> On Thu, Oct 9, 2008 at 9:35 PM, Rob Mensching
> <[EMAIL PROTECTED]> wrote:
>> Did you reference anything in the Fragment to cause it to get included in 
>> your Product?  It doesn't appear so.
>>
>> -----Original Message-----
>> From: Dmitry Berkovich [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, October 09, 2008 12:01
>> To: General discussion for Windows Installer XML toolset.
>> Subject: [WiX-users] Interesting behavior with Properties inside <Fragment> 
>> (wix 3.0.4325.0)
>>
>> Hi,
>>  I have found some interesting behavior :
>>   When I have <Fragment> that contains only properties declaration,
>> them are not added to Properties table. Example of code:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
>>  <Product Id="a851a145-ac6f-43fd-84f1-d3aca0f58a1b"
>> Name="WixProject7" Language="1033" Version="1.0.0.0"
>> Manufacturer="WixProject7"
>> UpgradeCode="77177830-ecf6-4a7c-9d74-12fae275f787">
>>    <Package InstallerVersion="200" Compressed="yes" />
>>
>>    <Media Id="1" Cabinet="WixProject7.cab" EmbedCab="yes" />
>>
>>    <Directory Id="TARGETDIR" Name="SourceDir">
>>      <Directory Id="ProgramFilesFolder">
>>        <Directory Id="INSTALLLOCATION" Name="WixProject7">
>>          <Component Id="ProductComponent"
>> Guid="59e025d1-5366-445e-ba0c-257e32bf453a">
>>            <CreateFolder/>
>>          </Component>
>>        </Directory>
>>      </Directory>
>>    </Directory>
>>
>>    <Feature Id="ProductFeature" Title="WixProject7" Level="1">
>>      <ComponentRef Id="ProductComponent" />
>>    </Feature>
>>  </Product>
>>
>>  <Fragment>
>>    <Property Id="P1" Value="1"/>
>>  </Fragment>
>> </Wix>
>>
>> Dima.
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to