Title: Setting sidtype on a service
Right now I think the only way will be to use a DLL custom action to call ChangeServiceConfig2 with the SERVICE_CONFIG_SERVICE_SID_INFO parameter and a SERVICE_SID_INFO structure with the dwServiceSidType member set to SERVICE_SID_TYPE_UNRESTRICTED.
 
This isn't so much a limitation of WiX as one of Windows Installer - if this feature has been added to Windows Installer 4.0, it's not in the SDK yet. I'm assuming a base version of 4.0 because this whole area is a new feature in Vista and "Longhorn" Server.
 
Even if there were support in MSI 4.0, or in a WiX-supplied custom action, I wouldn't expect to see it in v2 since the aim is to keep v2 stable, generally not adding new features.
 
--
Mike Dimmick 


From: [EMAIL PROTECTED] on behalf of Danny Smith
Sent: Tue 19/09/2006 22:26
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Setting sidtype on a service

Im installing a service and after installing it I need to set the sidtype (sc sidtype srvName UNRESTRICTED if done from the cmdline). Ive looked thru the v2.x schema on ServiceInstall and I don’t see where I can set it. Does WIX support setting this value?

The definition of SidType:

Changes the service security identifier (SID) type

setting of a service.

If this setting is "unrestricted", the Service Control

Manager (SCM) will add this service's SID to the service

process token when the service process starts the next

time due to the first service in the process being started.

This setting is valid only for Win32 user mode services.

If this setting is "restricted", the Service Control

Manager (SCM) will add this service's SID to the service

process token when the service process starts the next

time due to the first service in the process being started.

In addition, this service's SID will also be added to

the restricting SID list in the process token. The process

token will be a restricted token.  See MSDN for details on

restricted token. This setting is valid only for Win32

user mode services. In addition, for a share process service,

all services cohosted in the process must have this SID type

set for this to take effect.

If this setting is "none", the SCM will not add the service's

SID to the service process token.

Thanks

Danny Smith

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to