No. The composition of a component must not change (or at least it is recommended that it does not change) because components are reference-counted, not resources. This means that Windows Installer will remove all the resources associated with a component when that component's resource count reaches 0, _and will use the definition in the package being removed when doing so_. This can leave resources behind. You might be OK if the component is only used in a single product, but it can still cause complications for upgrades where RemoveExistingProducts is used to remove the old package as part of installing the new one.
For this reason, it's recommended that each component contains only a single resource. For more, see Rob's blog entry "Component Rules 101" at http://blogs.msdn.com/robmen/archive/2003/10/18/56497.aspx. Auto-generating components is equally fraught with danger as you must ensure that the component GUIDs are stable across builds, if you intend to support in-place upgrades. In this case this is to ensure that the resources are defined to be members of only a single component - resources managed by multiple components can end up being prematurely removed when one component is no longer referenced, but another component managing the same resources is. So don't expect to see features to support this any time soon. -- Mike Dimmick -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wouter Demuynck Sent: 22 April 2007 19:31 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Include multiple files / directories automatically Hello, Is it by any means possible to include multiple files in a single statement automatically in a component? I would like to add the full contents of a PrecompiledWeb directory in a component, but without the need for having to add a file element for each (100+) file. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users