The default WiX setup project template in WiX 3.6 generates a ComponentGroup
element with a Directory attribute on it. An early post by Rob says that
this attribute is meant to be inherited by any child components: 

What I was thinking about was the ability to do ComponentGroup/@Directory, 
which all the contained Components would "inherit". Thoughts? 


For me, the compile complains if I try this. I still have to either enclose
my components in a DirectoryRef or add a Directory attribute to each
component. If I don't, I get: 

The Component/@Directory attribute was not found; it is required.

Is the ComponentGroup/@Directory for a future release? 

Example (compiler error): 

<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
        <ComponentRef Id="CMP_AppToInstall.exe"/>
</ComponentGroup>

<Component Id="CMP_AppToInstall.exe" 
                 Guid="{063058E1-9AE4-4D7F-BC18-E33CFD46FCBC}">
                        <File  Id="FILE_AppToInstall.exe" 
                                Source="$(var.SourceFolder)AppToInstall.exe" 
                                KeyPath="yes" />
</Component>

--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/ComponentGroup-Directory-components-inheriting-directory-targeted-for-future-release-tp7574202.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to