Can you tell me how to add LsaAddAccountRights to a specific admin account?
And how do i give these required persmissions through my wix code?


Phil Wilson-2 wrote:
> 
> I've come across this before, and it's not a permissions problem, it's
> that
> log on as a service right. When you use the UI to have a Service run with
> an
> account, Windows adds that right. It doesn't add it otherwise (during the
> install)  so you need to add it (LsaAddAccountRights) to that account. The
> Administrator account doesn't have every right there is - that's why it's
> not there by default. 
> Phil Wilson 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett
> Sent: Monday, April 03, 2006 2:16 AM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Service Permissions
> 
> I'm having some trouble with a service installation.  I'll give the full
> details in case what I think is the answer isn't.
> 
> We used to install the service under the system account and everything was
> fine, but now a user has asked if it's possible to install the service
> under
> a given user account.  I've managed to change everything in terms of UI
> and
> properties in order to allow this, but I'm coming up against permission
> problems.  The installer keeps telling me it can't start the service and
> to
> check if I have permissions.  This is even when giving the details for the
> Administrator account.  If I install the service under the System account
> everything goes well and I can change the log on options of the service
> from
> the Services section of Administrative Tools.  When I do this I get a
> message that says "Administrator has been granted the Log On As A Service
> right".  After this attempting to install the service under the
> Administrator account works.  So I figure it's a permissions issue, right?
> 
> I've added a Permission child to ServiceInstall.  From light errors I've
> worked out I need to add wixca.dll to the Binary table and a custom action
> defined as <CustomAction Id="SchedSecureObjects" BinaryKey="wixca"
> DllEntry="SchedSecureObjects" 
> Execute="immediate" Return="asyncNoWait"/>
> 
> Apart from this what do I need to do?  I assume it has to be sequenced
> somewhere in the InstallExecuteSequence, but where?  And am I doing the
> right in the first place?
> 
> Rob
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Service-Permissions-tp3722566p15153058.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to