Hi,
There are probably all the problems that Rob talked about, but you may
find it works on a domain controller.
However the group Everyone is not an AD group it is a special local
group for member servers and workstations (part of the old NT4 SAM
stuff).
Michael
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rob
Mensching
Sent: Friday, 29 December 2006 3:03 AM
To: Douglas Watts; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Creating Active Directory Users
I'm not an expert with the User CustomAction, but I think it was
discussed here recently that you can't create Domain Accounts with the
it. There is a lot of thigns to consider when creating a domain
account, like what happens when you remove the package from a client
machine... does the domain account get deleted... and other things. I
don't think all the scenarios were understood well enough to enable the
creation of domain accounts... I think that's why Groups can't be
created as well.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Douglas
Watts
Sent: Thursday, December 28, 2006 08:34
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Creating Active Directory Users
I am trying to create a domain user under Active Directory. Here is the
snippet from my Wix source:
<DirectoryRef Id="INSTALLDIR">
<Component Id="CreateUserComponent" DiskId="1"
Guid="MY_GUID_-GOES-HERE-0000-000000000000">
<User Id='SqlUserID' Name='[MYUSERID]'
Password='[MYUSERPASSWORD]' CreateUser='yes' Domain='[USERDOMAIN]'>
<GroupRef Id='MyUsersGroup' />
</User>
</Component>
</DirectoryRef>
<Group Id="SqlServicesUsersGroup" Name="[MYUSERGROUP]"/>
The properties are properly gathered from a dialog. I specify
"sqlserver" for MYUSERID. I specify the "Everyone" group for
MYUSERGROUP. The domain is correct. I run the MSI while logged in as a
domain administrator. I get the following error message which tells me
that the installer is attempting to locate the group on my local machine
rather than on the domain. How do I qualify the group so that Windows
Installer looks for it on the domain?
Action 11:02:33: CreateUser.
MSI (s) (84:C8) [11:02:33:369]: Executing op:
CustomActionSchedule(Action=CreateUser,ActionType=11265,Source=BinaryDat
a,Target=**********,CustomActionData=**********)
MSI (s) (84:0C) [11:02:33:384]: Invoking remote custom action. DLL:
C:\WINDOWS\Installer\MSI26.tmp, Entrypoint: CreateUser
CreateUser: Error 0x800708ac: Failed to get group
'WinNT://Localhost/Everyone'.
CreateUser: Error 0x800708ac: failed to add user: sqlserver to group
Everyone
Error 26403. Failed to add user to group. (-2147022676 sqlserver
Everyone )
MSI (s) (84!14) [11:02:42:730]: Product: My Product -- Error 26403.
Failed to add user to group. (-2147022676 sqlserver Everyone )
__________
Doug Watts
-------------------------------------------------------------------------
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