Hello Phil,

Thank You for Your answer, but this doesn't help.

I have set the InstallPrivileges to "elevated", as You can see here:

    <Package InstallerVersion="405"
             Compressed="yes"
             InstallScope="perMachine"
             InstallPrivileges="elevated" />

But even when i execute my setup as an administrator, i get the following 
messages in the log.

1. The user is created (That's ok).

    MSI (s) (D8!78) [09:04:18:661]: PROPERTY CHANGE: Adding CreateUser 
property. Its value is '**********'.
    Action finished on 09:04:18: CreateUserRollback. Returnvalue 1.
    MSI (s) (D8!78) [09:04:18:661]: Doing action: CreateUser
    Action started on 09:04:18: CreateUser.
    Action finished on 09:04:18: CreateUser. Returnvalue 1.

2. The user shall be a member of the group "Users".

    MSI (s) (D8:B4) [09:04:19:599]: Invoking remote custom action. DLL: 
C:\Windows\Installer\MSI2254.tmp, Entrypoint: CreateUser
    MSI (s) (D8:6C) [09:04:19:599]: Generating random cookie.
    MSI (s) (D8:6C) [09:04:19:599]: Created Custom Action Server with PID 4428 
(0x114C).
    MSI (s) (D8:A8) [09:04:19:599]: Running as a service.
    MSI (s) (D8:F0) [09:04:19:599]: Hello, I'm your 32bit Elevated custom 
action server.
    CreateUser:  Error 0x80004005: Failed to get group 'TESTPC/Users'.
    CreateUser:  Error 0x80004005: failed to add user: ProSoftAdmin to group 
Users
    Fehler 26403. Failed to add user to group.  (-2147467259   ProSoftAdmin   
Users   )
    MSI (s) (D8!74) [09:08:35:848]: Produkt: Staffdirector -- Fehler 26403. 
Failed to add user to group.  (-2147467259   ProSoftAdmin   Users   )
    
    CustomAction CreateUser returned actual error code 1603 (note this may not 
be 100% accurate if translation happened inside sandbox)
    MSI (s) (D8:BC) [09:08:35:888]: Note: 1: 2265 2:  3: -2147287035 

And my User-element looks like this (I removed the Domain-property from the 
util:User):

        <util:Group Id="Users"
                        Name="Users"
                        Domain="[ComputerName]" />
        <Component Id="CreateUserAccount"
                   Guid="AEE91491-99FA-40A9-AB47-1E9FC2DDEF2A"
                   Directory="TARGETDIR">
            <util:User Id="SQLUser"
                       Name="[DBUSER_PROP]"
                       Password="[DBPW_PROP]"
                       UpdateIfExists="no"
                       CreateUser="yes"
                       PasswordNeverExpires="yes"
                       PasswordExpired="no"
                       RemoveOnUninstall="no">
                <util:GroupRef Id="Users" />
            </util:User>
        </Component>

So what's going wrong?


-----Ursprüngliche Nachricht-----
Von: Phil Wilson [mailto:phildgwil...@gmail.com] 
Gesendet: Montag, 15. Dezember 2014 20:45
An: General discussion about the WiX toolset.
Betreff: Re: [WiX-users] How to install a new user?

The answer to you in StackOverflow is accurate - it doesn't matter if someone 
is an administrator or not. Nobody has admin privileges unless they elevate.

---------------
Phil Wilson


On Mon, Dec 15, 2014 at 1:19 AM, Patrick Pirzer <patrick.pir...@prosoft.net> 
wrote:
> Okay, now the creation of the new user seems to be started, but i get an 
> privilege error.
> That's curious because my user is an administrator on the virtual machine, 
> where i'm testing my setup.
> My actual version for the creation of the user looks now like that:
>
>         <util:Group Id="Administrators"
>                     Name ="Administrators"
>                     Domain="[ComputerName]" />
>         <Component Id ="CreateUserAccount"
>                    Guid="AEE91491-99FA-40A9-AB47-1E9FC2DDEF2A"
>                    Directory="TARGETDIR">
>             <util:User Id ="SQLUser"
>                        Name="[DBUSER_PROP]"
>                        Password="[DBPW_PROP]"
>                        UpdateIfExists="no"
>                        CreateUser="yes"
>                        PasswordNeverExpires="yes"
>                        PasswordExpired="no"
>                        RemoveOnUninstall="no"
>                        Domain="[ComputerName]">
>                 <util:GroupRef Id ="Administrators"/>
>             </util:User>
>         </Component>
>
> ----------------------------------------------------------------------
> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT 
> Server from Actuate! Instantly Supercharge Your Business Reports and 
> Dashboards with Interactivity, Sharing, Native Excel Exports, App 
> Integration & more Get technology previously reserved for 
> billion-dollar corporations, FREE 
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.
> clktrk _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! 
Instantly Supercharge Your Business Reports and Dashboards with Interactivity, 
Sharing, Native Excel Exports, App Integration & more Get technology previously 
reserved for billion-dollar corporations, FREE 
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to