PDA

View Full Version : How to retrieve file groups of a component?



SpiceGary
10-10-2003, 11:36 AM
Does anyone knows how to retrieve the "File Groups" which are associated to a specific component?

I know ComponentFileEnum() can get all the files, but I actually need the "File Group" name because I have 2 file which will do different things but they have the same file name.

Thanks,
Gary

Stephan
10-14-2003, 11:09 AM
Hi Gary,

Sorry, there exists no InstallScript function that returns the file groups associated with a component.

I think the only solution is to use invisible subcomponents where you assign the file groups to (one component for each file group). You can than use ComponentListItems() to retrieve the component names.

HTH,
Stephan