[wix-users] Components installed in dependent directories

Hoover, Jacob Jacob.Hoover at greenheck.com
Thu Jul 28 12:40:37 PDT 2016


<SetProperty Id="MagicID" Value="[INSTALLDIR]_Demo" Before="CostFinalize" Sequence="both"/>

<Feature Id="ComponentAB">
  <ComponentRef Id="ComponentA"/>
  <ComponentRef Id="ComponentB"/>
</Feature>

<Directory Id="INSTALLDIR">
  <Component Id="ComponentA">
  <File Name="FileA"/>
  </Component>
</Directory>
  <Directory Id="MagicID" Name="_demo">
  <Component Id="ComponentB">
  <File Name="FileB"/>
  </Component>
  </Directory>

If you want the 2 folders in parallel.  

Or do you really want the _Demo folder to be a child of the parent, and use the parent folders name as a prefix to the child folders name?
IE:
C:\Application\Foo\FileA
C:\Application\Foo \Foo_Demo\FileB


-----Original Message-----
From: Rob Mensching [mailto:rob at firegiant.com] 
Sent: Thursday, July 28, 2016 2:09 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>; Hoover, Jacob <Jacob.Hoover at greenheck.com>
Subject: RE: [wix-users] Components installed in dependent directories

No, no. Type 51 is all that is necessary. Use SetProperty before CostFinalize.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phill Hogland
Sent: Thursday, July 28, 2016 12:08
To: Hoover, Jacob <Jacob.Hoover at greenheck.com>; WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Components installed in dependent directories

I have not tried this, but the schema indicates that Directory/@Name is LongFileNameType , for which "The value could also be a localization variable with the format !(loc.VARIABLE). "  And since localizable strings can have inserts, you might be able to use that feature.  And if a CA is needed I think it sounds like a good candidate for a semi-ca of which there are a number of example implementations in the wix\src\ext.    Look at how WcaAddTempRecord() is used.




More information about the wix-users mailing list