Hi There!

I'm trying to add an existing local user, to an existing local group.

WIX code is as follows:

    <util:Group Id="PerformanceLogUsers" Domain='$(env.COMPUTERNAME)' 
Name="Performance Log Users" />
     <util:Group Id="PerformanceMonitorUsers" 
Domain='$(env.COMPUTERNAME)' Name="Performance Monitor Users" />

    <Component Id="InstallService" 
Guid="6FA33CA9-4A70-486F-BB6F-AAAE2C62AE38" 
Directory="APPLICATIONFOLDER" Win64="yes">
       <File Id="WindowsService" Name="Agent.Service" 
Source="$(var.Agent.Service.TargetPath)" KeyPath="yes" />
       <util:User Id="UpdateUserLogonAsService" UpdateIfExists="yes" 
CreateUser="no" Name="[ACCOUNT]" LogonAsService="yes">
         <util:GroupRef Id="PerformanceLogUsers"/>
         <util:GroupRef Id="PerformanceMonitorUsers"/>
       </util:User>

       <ServiceInstall
           Id="Service"
           Name="AgentService"
           DisplayName="Agent Service"
           Description="Agent Service"
           Type="ownProcess"
           Start="auto"
           ErrorControl="normal"
           Account="[ACCOUNT]"
           Password="[PASSWORD]"
           Vital="yes">
         <ServiceDependency Id="MSSQLSERVER" />
       </ServiceInstall>
       <ServiceControl Id="StartService" Name="AgentService" 
Start="install" Stop="both" Wait="yes" Remove="uninstall" />
     </Component>

The error i get in the install log is the following:

MSI (s) (4C:20) [01:40:15:456]: Hello, I'm your 32bit Elevated custom 
action server.
CreateUser:  Error 0x80004005: Failed to get group 
'JOHNNY-PC/Performance Monitor Users'.
CreateUser:  Error 0x80004005: failed to add user: JOHNNY-PC\a to group 
Performance Monitor Users
Error 26403. Failed to add user to group.  (-2147467259 JOHNNY-PC\a   
Performance Monitor Users   )

is it possible it doesnt work because there is a space in the group 
name, or what am i doing wrong?

if i delete the  GroupRef and Group tags everything works correctly.

Best regards
Johnny

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to