That was my first thought that it may not be possible, but then I looked at the documentation for the LogonAsService attribute and it says "User creation can be skipped if all that is desired is to set this access right on the user." Likewise, for the CreateUser attribute it says "User creation can be skipped if all that is desired is to join a user to groups." I have thought about writing my own DLL which would do what I want if there are no other options.
As for the environments, I'm targeting XP and later, but I could do version specific custom actions if it comes to that. And I'm not sure if it will matter, but I'm aiming to do a local account, not a domain account. I'll have to look into the features for Win7 and 2008R2 as well. Thanks. On Mon, Mar 19, 2012 at 8:27 AM, Christopher Painter <chr...@iswix.com> wrote: > AFAIK, The WiXUtil User element doesn't have this functionality. I think > it can create normal accounts and normal accounts with the LogonAsService > Right. If you want to create service accounts that don't have logon > rights you'll need to write a custom action. ( I hope that I'm wrong. ) > > > BTW, there's some cool new stuff in Win7 / 2008R2 if you aren't already > aware of it and if you happen to be targetting this environment. Google > "managed service acccount" and "windows virtual accounts" ( local managed > accounts ). > > ---------------------------------------- > > From: "Justin Kabonick" <kabonick...@gmail.com> > > Sent: Monday, March 19, 2012 6:33 AM > > To: wix-users@lists.sourceforge.net > > Subject: [WiX-users] Trouble installing service account with user element > > > I'm running into a bit of a problem using the WixUtilExtension User > > element. I'm trying to install an account which I can use for a > > service I am also installing but I don't want the account to be > > "created". In other words, I don't want users to be able to log in as > > this user, but I want it strictly for service use. The service install > > works properly, it's just the user creation with which I am having > > issues. > > > <util:User Id="dvSandbox" CreateUser="no" CanNotChangePassword="yes" > > PasswordNeverExpires="yes" Password="dvTest" RemoveOnUninstall="no" > > LogonAsService="yes" Name="dvSandbox"> > > <util:GroupRef Id="Administrators" /> > > </util:User> > > > Above is the element I am using. When I run this, it gives me "Failed > > to grant logon as service". If I change CreateUser to "yes", it > > installs the user properly. I've looked at the documentation and > > searched Google quite a bit, but I can't seem to find an answer for > > why this is happening. I would appreciate any help if anyone has > > experience using this extension. > > > Thanks, justink > > > ---------------------------------------------------------------------------- > -- > > This SF email is sponsosred by: > > Try Windows Azure free for 90 days Click Here > > http://p.sf.net/sfu/sfd2d-msazure > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users -- Justin I. Kabonick Grove City College 2010 BS in Computer Science kabonick...@gmail.com ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users