I believe so, yes. You'll need to careful on Vista because custom
actions inherit a limited set of privileges and I don't know which is
needed to update a user account. 
http://blogs.msdn.com/windows_installer_team/archive/2006/10/30/preview-
of-upcoming-kb-articles-windows-installer-4-0-on-windows-vista.aspx  

Phil Wilson 


-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Alex
Smotritsky
Sent: Wednesday, November 29, 2006 12:08 PM
To: [email protected]
Subject: [ADVANCED-DOTNET] assigning "Log on as a service" policy to an
account thru windows installer

I'm working on an installer for a windows service. I allow the user to
specify a user/pass for the service to run as because LocalSystem is
insufficient for this service. If the account the user provides does not
have the "Log on as a service" policy assigned to it - admin accounts do
not have this policy assigned to them by default, I want to atleast
attempt to assign that policy to the account, then continue with the
install if successfully or report failure.



Is this a situation that requires a C++ custom action?



Does anyone know of any good resources for this scenario?






===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to