Changing the ProfileCatalog file

Topics: CAB & Smart Client Software Factory
Nov 17, 2005 at 2:57 AM
originally posted by: dfanning

How can I tell CAB to use a different file that define the SolutionProfile data?
This is defaulted to ProfileCatalog.xml, I'd like to use a different filename.

Thanks

Great work on the release!

David
Mar 30, 2006 at 1:27 PM
originally posted by: BobDotNet2000

Is there anyone who can answer this post.


Thanks, Robert.
Mar 30, 2006 at 2:43 PM
originally posted by: matiaswoloski

You would need to remove the current IModuleEnumerator and create it again

Do it in AfterShellCreated

RootWorkItem.Services.Remove{IModuleEnumerator}();
FileCatalogEnumerator moduleEnum = new FileCatalogEnumerator("MyCatalog.xml");
RootWorkItem.Services.Add{IModuleEnumerator}( moduleEnum );

braces = lessthan and greaterthan

Matias
http://staff.southworks.net/blogs/matiaswoloski
Mar 31, 2006 at 5:39 AM
originally posted by: BobDotNet2000

Thank you very much for your answer Matias. The only little problem that I found is that it should be "FileCatalogModuleEnumerator" and not "FileCatalogEnumerator". With that everything works good!

Thanks again!