User Element

WiX Help

User Element

Description

User for all kinds of things. When it is not nested under a component it is included in the MSI so it can be referenced by other elements such as the User attribute in the AppPool element. When it is nested under a Component element, the User will be created on install and can also be used for reference.

Windows Installer references
None
Parents
Component, Fragment, Include, Module, Product
Inner Text
None
Children
Sequence (min: 1, max: 1)
  1. GroupRef (min: 0, max: unbounded)
Attributes
Name Type Description Required
Id String   Yes
CanNotChangePassword YesNoType    
CreateUser YesNoType Indicates whether or not to create the user. User creation can be skipped if all that is desired is to join a user to groups.  
Disabled YesNoType    
Domain String    
FailIfExists YesNoType Indicates if the install should fail if the user already exists.  
Name String   Yes
Password String Usually a Property that is passed in on the command-line to keep it more secure.  
PasswordExpired YesNoType Indicates whether the user must change their password on their first login.  
PasswordNeverExpires YesNoType    
RemoveOnUninstall YesNoType Indicates whether the user account should be left behind on uninstall.  
UpdateIfExists YesNoType Indicates if the user account properties should be updated if the user already exists.  
See Also
Wix Schema, Group, GroupRef