tgoffice
2008-12-04 09:14:11 UTC
I want to create a new local user which should be added automatically to
"Administrators" and "Users" group.
I use the predefind properties of WIX UtilExtension
"WIX_ACCOUNT_ADMINISTRATORS" and "WIX_ACCOUNT_USERS".
<util:Group Id="AdministratorsGroup" Name="[WIX_ACCOUNT_ADMINISTRATORS]"/>
<util:Group Id="UserGroup" Name="[WIX_ACCOUNT_USERS]"/>
<util:User Id="ProcessEngine_Web_User" CreateUser="yes"
CanNotChangePassword="yes" Disabled="no" Name="WixTest" Password="WixTest"
PasswordExpired="no" PasswordNeverExpires="yes" RemoveOnUninstall="yes"
UpdateIfExists="no">
<util:GroupRef Id="AdministratorsGroup"/>
<util:GroupRef Id="UserGroup"/>
</util:User>
The property returns "BUILTIN\Administrators". If I remove "BUILTIN\" it is
working.
The following error is logged to installer.log (used msiexec /i
"WixProject2.msi" /l*v "installer.log")
MSI (s) (50:5C) [08:59:49:546]: Invoking remote custom action. DLL:
C:\WINDOWS\Installer\MSI10.tmp, Entrypoint: CreateUser
CreateUser: Error 0x80004002: Failed to get group
'WinNT://BUILTIN\Administrators'.
CreateUser: Error 0x80004002: failed to add user: WixTest to group
BUILTIN\Administrators
MSI (c) (0C:08) [08:59:50:087]: Font created. Charset: Req=0, Ret=0, Font:
Req=MS Shell Dlg, Ret=MS Shell Dlg
Error 26403. Failed to add user to group. (-2147467262 WixTest
BUILTIN\Administrators )
MSI (s) (50!AC) [08:59:59:831]: Product: _WixCreateUser -- Error 26403.
Failed to add user to group. (-2147467262 WixTest
BUILTIN\Administrators )
Action ended 8:59:59: InstallFinalize. Return value 3.
I have attached the whole project and the compiled MSI:
http://n2.nabble.com/file/n1612823/WixCreateUser.zip WixCreateUser.zip
I used WIX 3.0.4721.0, compiled on Vista SP 1.
I tried to install the MSI on several windows versins:
English Server 2003 SP2 (Windows Installer V3.01.4000.3959)
WIX_ACCOUNT_ADMINISTRATORS returns "BUILTIN\Administrators"
German Vista SP1 (Windows ® Installer. V 4.5.6001.22162 )
WIX_ACCOUNT_ADMINISTRATORS returns "Vordefiniert\Administrators"
German Serve 2003 SP2 (Windows ® Installer. V 3.01.4000.3959)
WIX_ACCOUNT_ADMINISTRATORS returns "Vordefiniert\Administrators"
Is this a bug?
Regards
Thomas Gasser
"Administrators" and "Users" group.
I use the predefind properties of WIX UtilExtension
"WIX_ACCOUNT_ADMINISTRATORS" and "WIX_ACCOUNT_USERS".
<util:Group Id="AdministratorsGroup" Name="[WIX_ACCOUNT_ADMINISTRATORS]"/>
<util:Group Id="UserGroup" Name="[WIX_ACCOUNT_USERS]"/>
<util:User Id="ProcessEngine_Web_User" CreateUser="yes"
CanNotChangePassword="yes" Disabled="no" Name="WixTest" Password="WixTest"
PasswordExpired="no" PasswordNeverExpires="yes" RemoveOnUninstall="yes"
UpdateIfExists="no">
<util:GroupRef Id="AdministratorsGroup"/>
<util:GroupRef Id="UserGroup"/>
</util:User>
The property returns "BUILTIN\Administrators". If I remove "BUILTIN\" it is
working.
The following error is logged to installer.log (used msiexec /i
"WixProject2.msi" /l*v "installer.log")
MSI (s) (50:5C) [08:59:49:546]: Invoking remote custom action. DLL:
C:\WINDOWS\Installer\MSI10.tmp, Entrypoint: CreateUser
CreateUser: Error 0x80004002: Failed to get group
'WinNT://BUILTIN\Administrators'.
CreateUser: Error 0x80004002: failed to add user: WixTest to group
BUILTIN\Administrators
MSI (c) (0C:08) [08:59:50:087]: Font created. Charset: Req=0, Ret=0, Font:
Req=MS Shell Dlg, Ret=MS Shell Dlg
Error 26403. Failed to add user to group. (-2147467262 WixTest
BUILTIN\Administrators )
MSI (s) (50!AC) [08:59:59:831]: Product: _WixCreateUser -- Error 26403.
Failed to add user to group. (-2147467262 WixTest
BUILTIN\Administrators )
Action ended 8:59:59: InstallFinalize. Return value 3.
I have attached the whole project and the compiled MSI:
http://n2.nabble.com/file/n1612823/WixCreateUser.zip WixCreateUser.zip
I used WIX 3.0.4721.0, compiled on Vista SP 1.
I tried to install the MSI on several windows versins:
English Server 2003 SP2 (Windows Installer V3.01.4000.3959)
WIX_ACCOUNT_ADMINISTRATORS returns "BUILTIN\Administrators"
German Vista SP1 (Windows ® Installer. V 4.5.6001.22162 )
WIX_ACCOUNT_ADMINISTRATORS returns "Vordefiniert\Administrators"
German Serve 2003 SP2 (Windows ® Installer. V 3.01.4000.3959)
WIX_ACCOUNT_ADMINISTRATORS returns "Vordefiniert\Administrators"
Is this a bug?
Regards
Thomas Gasser
--
View this message in context: http://n2.nabble.com/Add-User-to-predefined-group-fails-tp1612823p1612823.html
Sent from the wix-users mailing list archive at Nabble.com.
View this message in context: http://n2.nabble.com/Add-User-to-predefined-group-fails-tp1612823p1612823.html
Sent from the wix-users mailing list archive at Nabble.com.