It looks like, at the moment, you will need to create your own custom action to do this.
 
In WiX 2.0, the <Group> element is only for defining a group to be referenced with <GroupRef> elements. These are for adding a user (possibly created by the installation) to an existing group. The only change for WiX 3.0 is that these elements are moved into the WixUtilExtension extension's namespace.
 
You'd have to check whether the "Group" table created by this element actually ends up in the final installer - I believe it does. Your custom action could possibly then process this table to create the groups (depending on install state of the component referencing it? - but you need <User> and <GroupRef> elements to link back to a component). If you need to just create a group (no users) you can't condition it on a component. The Group table does have a componentId field, but unfortunately it's always going to be null in the current implementation.
 
For the pattern of how to implement this, see sca.wxs for the custom action definitions (ConfigureUsers, CreateUser, CreateUserRollback, RemoveUser), scasched.cpp for the implementation of ConfigureUsers, and scaexec.cpp for the implementation of CreateUser, CreateUserRollback and RemoveUser, and scauser.cpp for all of the support code that actually manipulates the user account.
 
It's something that would generally be useful, so consider submitting it as a feature request to http://sourceforge.net/tracker/?group_id=105970&atid=642717.
 
--
Mike Dimmick


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonas Jonsson L (AL/EAB)
Sent: 28 September 2006 11:04
To: WiX Listan
Subject: [WiX-users] Create user-groups during installation

Is this possible, if so, how?  I'm not talking about actual users, but users-groups.....
 
I've been thinking that the <Group>-element was made for this, but now when I've looked a little closer, I've changed my mind.  I'm currently using version 2.0.3309.0 of WiX, is there more documentation regarding this in later versions?
 
/Jonas
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to