Go Back   PackageDeploy Application Packaging Forums > Package Development > Application Packaging > Windows MSI

Reply
 
LinkBack Thread Tools Display Modes
Old 12-19-2008, 03:12 AM   #1 (permalink)
MFD
Guest
 
Posts: n/a
Default Question about Services

Can I start a Service and restrict it to a group of user so you can only
start it if you are a part of that group? and can I create that group with my
MSI package?
  Reply With Quote
Old 12-19-2008, 03:12 AM   #2 (permalink)
Kalle Olavi Niemitalo
Guest
 
Posts: n/a
Default Re: Question about Services

MFD <MFD@discussions.microsoft.com> writes:

> Can I start a Service and restrict it to a group of user so you can only
> start it if you are a part of that group?


Yes you can. You'd give the service a security descriptor whose
DACL grants SERVICE_START to the group. However, the
LockPermissions table of Windows Installer does not support
services, so you would need a custom action to set the security
descriptor. WiX apparently comes with such a custom action.

Alternatively, it might be possible to set the security
descriptor via the Registry table. However, I don't know if the
affected registry key is really documented, and it might even be
under Windows Resource Protection in Vista, so I do not recommend
this.

> and can I create that group with my MSI package?


Windows Installer does not itself support creating groups,
but WiX includes a custom action for that purpose, so apparently
it can be done.
  Reply With Quote
Old 12-19-2008, 03:12 AM   #3 (permalink)
Dennis Bareis
Guest
 
Posts: n/a
Default Re: Question about Services

Hi,

On Fri, 10 Oct 2008 06:25:01 -0700, MFD <MFD@discussions.microsoft.com> wrote:

>Can I start a Service and restrict it to a group of user so you can only
>start it if you are a part of that group? and can I create that group with my
>MSI package?



"SC.EXE" (and probably others) can do this (you'd need a custom action):

http://makemsi-manual.dennisbareis.c...ated_tools.htm

Bye,
Dennis
Dennis Bareis [Microsoft MVP] (dbareis@KillSpam.gmail.com)
http://dennisbareis.com/
Freeware Windows Installer creation tool (+ "ORCA automation"):
http://makemsi.dennisbareis.com/
  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:23 PM.


vBulletin, Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
2007 - 2012 PackageDeploy.com